summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/webpack.config.js5
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,