Dont use -p on webpack when declaring uglifyjs plugin

This commit is contained in:
David Kaltschmidt
2015-12-16 18:53:11 +01:00
parent b70e68a319
commit 57dfe4a4e8
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -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
}