Make DefinePlugin definitions more specific
This commit is contained in:
parent
5f53269f0e
commit
7ab73173b6
|
|
@ -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),
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue