From 2adb8bac5c821e13d3de16808786382e421744ec Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 14 Oct 2015 09:20:18 +0100 Subject: [PATCH] Actually turn on production mode: env vars need to be explicitly passed through --- webpack.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 6e557ae6..74e71113 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,7 +19,12 @@ module.exports = { }, }, plugins: [ - new webpack.IgnorePlugin(/^olm/) + new webpack.IgnorePlugin(/^olm/), + new webpack.DefinePlugin({ + 'process.env': { + NODE_ENV: JSON.stringify(process.env.NODE_ENV) + } + }) ], devtool: 'source-map' };