Commit a01458a9 authored by Clement Ho's avatar Clement Ho

Merge branch 'fix-webpack-node-env' into 'master'

Enable webpack nodeEnv optimization

See merge request gitlab-org/gitlab-ce!20075
parents e3a1b825 5a0e6f9a
...@@ -15,6 +15,7 @@ function fatalError(message) { ...@@ -15,6 +15,7 @@ function fatalError(message) {
// disable problematic options // disable problematic options
webpackConfig.entry = undefined; webpackConfig.entry = undefined;
webpackConfig.mode = 'development'; webpackConfig.mode = 'development';
webpackConfig.optimization.nodeEnv = false;
webpackConfig.optimization.runtimeChunk = false; webpackConfig.optimization.runtimeChunk = false;
webpackConfig.optimization.splitChunks = false; webpackConfig.optimization.splitChunks = false;
......
...@@ -174,7 +174,6 @@ module.exports = { ...@@ -174,7 +174,6 @@ module.exports = {
}, },
optimization: { optimization: {
nodeEnv: false,
runtimeChunk: 'single', runtimeChunk: 'single',
splitChunks: { splitChunks: {
maxInitialRequests: 4, maxInitialRequests: 4,
......
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