From 9db5ce551e92db9fff0adf3cdd871461bb23f31a Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 11 Aug 2016 01:13:54 +0800 Subject: [PATCH] inject NODE_ENV into webpack - probably fixes #595 (#599) --- webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 492871ff..4bab5d59 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,6 +3,11 @@ const webpack = 'webpack' const config = module.exports = { context: __dirname, + plugins: [ + new webpack.DefinePlugin({ + "process.env.NODE_ENV": `"${process.env.NODE_ENV || 'development'}"` + }) + ], module: { loaders: [ {