diff --git a/webpack.config.js b/webpack.config.js index d6ff67f93..744b2e9d6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -148,6 +148,12 @@ const config = [ jQuery: 'jQuery', $: 'jQuery', }), + new webpack.DefinePlugin({ + 'process.env':{ + // Builds React in production mode, avoiding console warnings + 'NODE_ENV': JSON.stringify('production') + } + }), new webpack.optimize.UglifyJsPlugin({ compress: { unused: false,