mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Dont use -p on webpack when declaring uglifyjs plugin
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user