don't uglify, since it makes source maps too big
This commit is contained in:
parent
07a84844db
commit
73bcf22ebf
@ -42,7 +42,7 @@ module.exports = function (env) {
|
||||
],
|
||||
}
|
||||
if (env.prod) {
|
||||
base.plugins.push(new webpack.optimize.UglifyJsPlugin());
|
||||
//base.plugins.push(new webpack.optimize.UglifyJsPlugin({sourceMap: true}));
|
||||
base.plugins.push(new webpack.LoaderOptionsPlugin({minimize: true}));
|
||||
base.plugins.push(new webpack.DefinePlugin({
|
||||
"process.env.NODE_ENV": JSON.stringify("production")
|
||||
|
Loading…
Reference in New Issue
Block a user