diff options
Diffstat (limited to 'plugins/jetpack/webpack.config.js')
-rw-r--r-- | plugins/jetpack/webpack.config.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/jetpack/webpack.config.js b/plugins/jetpack/webpack.config.js index e1f2cdd4..63165716 100644 --- a/plugins/jetpack/webpack.config.js +++ b/plugins/jetpack/webpack.config.js @@ -93,9 +93,7 @@ var webpackConfig = { // NODE_ENV is used inside React to enable/disable features that should only // be used in development - 'process.env': { - NODE_ENV: JSON.stringify( NODE_ENV ) - } + 'process.env.NODE_ENV': JSON.stringify( NODE_ENV ) }), new ExtractTextPlugin( '[name].dops-style.css' ) ], @@ -110,10 +108,8 @@ var webpackConfig = { if ( NODE_ENV === 'production' ) { webpack.DefinePlugin( { - "process.env": { - // This has effect on the react lib size - "NODE_ENV": JSON.stringify(process.env.NODE_ENV) // TODO switch depending on actual environment - } + // This has effect on the react lib size + 'process.env.NODE_ENV': JSON.stringify( process.env.NODE_ENV ) // TODO switch depending on actual environment } ); } |