From 8faee841e528b8502ade38cabb866ce1f96b3a72 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Wed, 8 Dec 2021 11:17:32 +0100 Subject: [PATCH] Change source map type (#4230) * Change source map type --- webpack_config/production.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/webpack_config/production.js b/webpack_config/production.js index a2562962994..92bd78741c1 100644 --- a/webpack_config/production.js +++ b/webpack_config/production.js @@ -13,7 +13,7 @@ const TargetEnv = process.env.TARGET_ENV || PRODUCTION; module.exports = merge.smart(common, { mode: 'production', - devtool: 'cheap-module-source-map', + devtool: 'source-map', output: { path: path.join(config.path.output, 'web'), @@ -39,10 +39,7 @@ module.exports = merge.smart(common, { plugins: [ // The EnvironmentPlugin is shorthand for using the DefinePlugin on process.env keys. // https://webpack.js.org/plugins/environment-plugin/ - new webpack.EnvironmentPlugin([ - 'TARGET_ENV', - 'COMMIT_HASH' - ]), + new webpack.EnvironmentPlugin(['TARGET_ENV', 'COMMIT_HASH']), new MiniCSSExtractPlugin({ filename: `[name].[contenthash].css`