can i just change my webpack mode to production code example
Example 1: running webpack application on production server
"scripts": {
"build": "NODE_ENV=production webpack --config ./webpack.production.config.js"
},
Example 2: running webpack application on production server
new webpack.optimize.CommonsChunkPlugin('common.js'),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.AggressiveMergingPlugin()