From 3c54bd3b72822e74a8d27971e604eeb8f44f5f6a Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 4 Mar 2021 12:55:12 +0100 Subject: [PATCH] MOBILE-3664 angular: Don't optimize scripts The scripts optimization needs to be disabled to make site plugins work --- angular.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 37fc46139..c44eabc41 100644 --- a/angular.json +++ b/angular.json @@ -40,7 +40,10 @@ }, "configurations": { "production": { - "optimization": true, + "optimization": { + "scripts": false, + "styles": true + }, "outputHashing": "all", "sourceMap": false, "extractCss": true, @@ -52,8 +55,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" + "maximumWarning": "50mb", + "maximumError": "100mb" } ] },