diff --git a/webpack.config.js b/webpack.config.js index 6e557ae63..74e711135 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,7 +19,12 @@ module.exports = { }, }, plugins: [ - new webpack.IgnorePlugin(/^olm/) + new webpack.IgnorePlugin(/^olm/), + new webpack.DefinePlugin({ + 'process.env': { + NODE_ENV: JSON.stringify(process.env.NODE_ENV) + } + }) ], devtool: 'source-map' };