diff --git a/webpack.config.js b/webpack.config.js index b9636d2..74f817e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -62,6 +62,9 @@ var webpackConfig = { plugins: [ new webpack.DefinePlugin({ + 'process.env': { + NODE_ENV: JSON.stringify(isProduction ? 'production' : 'dev') + }, __DEV__: !isProduction, __TEST__: isTest, __PROD__: isProduction