diff --git a/client/package.json b/client/package.json index e28cf3723..435b617d4 100644 --- a/client/package.json +++ b/client/package.json @@ -58,7 +58,7 @@ "webpack-dev-server": "~1.12.1" }, "scripts": { - "build": "webpack -p --config webpack.production.config.js", + "build": "webpack --config webpack.production.config.js", "start": "node server.js", "start-production": "NODE_ENV=production node server.js", "test": "jest", diff --git a/client/webpack.production.config.js b/client/webpack.production.config.js index 89744be46..a8a4d6576 100644 --- a/client/webpack.production.config.js +++ b/client/webpack.production.config.js @@ -73,7 +73,9 @@ module.exports = { plugins: [ new webpack.DefinePlugin(GLOBALS), new webpack.optimize.CommonsChunkPlugin('vendors', 'vendors.js'), + new webpack.optimize.OccurenceOrderPlugin(true), new webpack.optimize.UglifyJsPlugin({ + sourceMap: false, compress: { warnings: false }