From 1a128ae7bc51110ece212852217049bf0b02f11b Mon Sep 17 00:00:00 2001 From: Elena Zioga Date: Mon, 16 Jan 2023 12:22:59 +0200 Subject: [PATCH] frontend: Add source maps in the browser (#2043) * Enable source maps in both development and production. Signed-off-by: Elena Zioga Signed-off-by: Elena Zioga --- pkg/new-ui/v1beta1/frontend/angular.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkg/new-ui/v1beta1/frontend/angular.json b/pkg/new-ui/v1beta1/frontend/angular.json index b1391187029..3d638d465f7 100644 --- a/pkg/new-ui/v1beta1/frontend/angular.json +++ b/pkg/new-ui/v1beta1/frontend/angular.json @@ -40,7 +40,12 @@ "vendorChunk": true, "extractLicenses": false, "buildOptimizer": false, - "sourceMap": true, + "sourceMap": { + "scripts": true, + "styles": true, + "hidden": false, + "vendor": true + }, "optimization": false, "namedChunks": true }, @@ -54,7 +59,12 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": { + "scripts": true, + "styles": true, + "hidden": false, + "vendor": true + }, "namedChunks": false, "extractLicenses": true, "vendorChunk": false,