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