mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Added webpack build config
This commit is contained in:
18
webpack.prod.config.js
Normal file
18
webpack.prod.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
var webpack = require('webpack');
|
||||
var config = require('./webpack.base.config');
|
||||
|
||||
config.plugins = (config.plugins || []).concat([
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: '"production"'
|
||||
}
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compress: {
|
||||
warnings: false
|
||||
}
|
||||
}),
|
||||
new webpack.optimize.OccurenceOrderPlugin()
|
||||
]);
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user