Browse code
chore: cleanup webpack stuff
Ed Langley authored on 18/11/2019 23:15:12
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
var path = require('path') |
2 | 2 |
var webpack = require('webpack') |
3 |
+var VueLoaderPlugin = require('vue-loader/lib/plugin') |
|
3 | 4 |
|
4 | 5 |
module.exports = { |
5 | 6 |
entry: './src/main.js', |
... | ... |
@@ -57,6 +58,7 @@ if (process.env.NODE_ENV === 'production') { |
57 | 58 |
module.exports.devtool = '#source-map' |
58 | 59 |
// http://vue-loader.vuejs.org/en/workflow/production.html |
59 | 60 |
module.exports.plugins = (module.exports.plugins || []).concat([ |
61 |
+ new VueLoaderPlugin(), |
|
60 | 62 |
new webpack.DefinePlugin({ |
61 | 63 |
'process.env': { |
62 | 64 |
NODE_ENV: '"production"' |