diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-05-18 18:03:20 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-05-18 18:23:59 -0500 |
commit | 636aed1fff24a0fcae65e17992fd8b51f6476c25 (patch) | |
tree | e2ddcc54f8d126877b7c48c683c587bf34d7e031 /config | |
parent | f2a0f9a8dd27ca53acf306947c1a7d64de619df4 (diff) | |
download | gitlab-ce-636aed1fff24a0fcae65e17992fd8b51f6476c25.tar.gz |
move devtool setting into main config object
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack.config.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index ff7189bd708..cbac7a5c7c2 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -77,6 +77,8 @@ const config = { globalObject: 'this', // allow HMR and web workers to play nice }, + devtool: IS_PRODUCTION ? 'source-map' : 'cheap-module-eval-source-map', + optimization: { nodeEnv: false, runtimeChunk: 'single', @@ -254,8 +256,6 @@ const config = { }; if (IS_PRODUCTION) { - config.devtool = 'source-map'; - // compression can require a lot of compute time and is disabled in CI if (!NO_COMPRESSION) { config.plugins.push(new CompressionPlugin()); @@ -263,7 +263,6 @@ if (IS_PRODUCTION) { } if (IS_DEV_SERVER) { - config.devtool = 'cheap-module-eval-source-map'; config.devServer = { host: DEV_SERVER_HOST, port: DEV_SERVER_PORT, |