webpack.wap.prod.conf.js
572 Bytes
const webpack = require('webpack');
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin');
let webpackConfig = require('./basic/webpack.wap.base.conf.js');
webpackConfig.plugins.push(new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
},
__PROD__: true
}));
webpackConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}));
webpackConfig.plugins.push(new OptimizeCSSPlugin({
cssProcessorOptions: {
safe: true
}
}));
module.exports = webpackConfig;