don't uglify, since it makes source maps too big

This commit is contained in:
Florian Dold 2017-06-03 20:48:26 +02:00
parent 07a84844db
commit 73bcf22ebf
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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")