Optimize Webpack "process" env

This commit is contained in:
Nolan Lawson
2018-01-14 17:40:25 -08:00
parent aa109b7837
commit cd1c84fd43

View File

@@ -51,6 +51,10 @@ module.exports = {
].concat(isDev ? [
new webpack.HotModuleReplacementPlugin()
] : [
new webpack.DefinePlugin({
'process.browser': true,
'process.env.NODE_ENV': '"production"'
}),
new ExtractTextPlugin('main.css'),
new webpack.optimize.ModuleConcatenationPlugin(),
new UglifyJSPlugin()