Make DefinePlugin definitions more specific

This commit is contained in:
Mike Greiling 2018-10-02 16:24:44 -05:00
parent 5f53269f0e
commit 7ab73173b6
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 2 additions and 3 deletions

View File

@ -22,11 +22,10 @@ webpackConfig.optimization.splitChunks = false;
// use quicker sourcemap option
webpackConfig.devtool = 'cheap-inline-source-map';
// set BABEL_ENV to indicate when we're running code coverage
webpackConfig.plugins.push(
new webpack.DefinePlugin({
'process.env': {
BABEL_ENV: JSON.stringify(process.env.BABEL_ENV || process.env.NODE_ENV || null),
},
'process.env.BABEL_ENV': JSON.stringify(process.env.BABEL_ENV || process.env.NODE_ENV || null),
})
);