From 57dfe4a4e8c9a1628851764d52ba2ad2ea8ec283 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Wed, 16 Dec 2015 18:53:11 +0100 Subject: [PATCH] Dont use -p on webpack when declaring uglifyjs plugin --- client/package.json | 2 +- client/webpack.production.config.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 }