Skip to content

Commit 2adb8ba

Browse files
committed
Actually turn on production mode: env vars need to be explicitly passed through
1 parent c0938f2 commit 2adb8ba

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎webpack.config.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ module.exports = {
1919
},
2020
},
2121
plugins: [
22-
new webpack.IgnorePlugin(/^olm/)
22+
new webpack.IgnorePlugin(/^olm/),
23+
new webpack.DefinePlugin({
24+
'process.env': {
25+
NODE_ENV: JSON.stringify(process.env.NODE_ENV)
26+
}
27+
})
2328
],
2429
devtool: 'source-map'
2530
};

0 commit comments

Comments
 (0)