From 3ab2d1e72b4114c017b777ea70db9325c75d0e7e Mon Sep 17 00:00:00 2001 From: Bjarke Madsen <bjarke@nordu.net> Date: Thu, 3 Aug 2023 12:36:08 +0200 Subject: [PATCH] add source map for debugging --- compendium-frontend/webpack.config.ts | 1 + survey-frontend/webpack.config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/compendium-frontend/webpack.config.ts b/compendium-frontend/webpack.config.ts index 0a9f0691..bc852cb5 100644 --- a/compendium-frontend/webpack.config.ts +++ b/compendium-frontend/webpack.config.ts @@ -66,6 +66,7 @@ const config: Configuration = { "/survey/*": "http://127.0.0.1:4001" }, }, + devtool: process.env.NODE_ENV === "production" ? undefined : "inline-source-map", plugins: [ new ForkTsCheckerWebpackPlugin({ async: false, diff --git a/survey-frontend/webpack.config.ts b/survey-frontend/webpack.config.ts index 96951f64..2f05e737 100644 --- a/survey-frontend/webpack.config.ts +++ b/survey-frontend/webpack.config.ts @@ -70,6 +70,7 @@ const config: Configuration = { "/authorize": "http://127.0.0.1:5000", }, }, + devtool: process.env.NODE_ENV === "production" ? undefined : "inline-source-map", plugins: [ new ForkTsCheckerWebpackPlugin({ async: false, -- GitLab