Commit 7ab73173 authored by Mike Greiling's avatar Mike Greiling

Make DefinePlugin definitions more specific

parent 5f53269f
...@@ -22,11 +22,10 @@ webpackConfig.optimization.splitChunks = false; ...@@ -22,11 +22,10 @@ webpackConfig.optimization.splitChunks = false;
// use quicker sourcemap option // use quicker sourcemap option
webpackConfig.devtool = 'cheap-inline-source-map'; webpackConfig.devtool = 'cheap-inline-source-map';
// set BABEL_ENV to indicate when we're running code coverage
webpackConfig.plugins.push( webpackConfig.plugins.push(
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': { 'process.env.BABEL_ENV': JSON.stringify(process.env.BABEL_ENV || process.env.NODE_ENV || null),
BABEL_ENV: JSON.stringify(process.env.BABEL_ENV || process.env.NODE_ENV || null),
},
}) })
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment