From fd2dc2245c89b2cd0c7aef5cd0d3345010240a35 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 12 Apr 2022 12:20:09 +0200 Subject: [PATCH] UI: Use eval-source-map instead of eval devtool --- monkey/monkey_island/cc/ui/webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/webpack.config.js b/monkey/monkey_island/cc/ui/webpack.config.js index 06878d662..bf691a506 100644 --- a/monkey/monkey_island/cc/ui/webpack.config.js +++ b/monkey/monkey_island/cc/ui/webpack.config.js @@ -9,6 +9,7 @@ const smp = new SpeedMeasurePlugin({ disable: isProduction }); module.exports = smp.wrap({ + mode : isProduction ? 'production' : 'development', cache: { type: 'filesystem', memoryCacheUnaffected: true @@ -78,7 +79,7 @@ module.exports = smp.wrap({ } ] }, - devtool: isProduction ? 'source-map' : 'eval', + devtool: isProduction ? 'source-map' : 'eval-source-map', plugins: [ new ForkTsCheckerWebpackPlugin({ typescript: {