From 4a42fe3163bfe2d27b0cd869e708bcf603ed60f5 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 3 Oct 2022 13:34:22 +0300 Subject: [PATCH] Disable inline critical css in angular.json --- angular.json | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 6af318d..2d96dab 100644 --- a/angular.json +++ b/angular.json @@ -62,7 +62,14 @@ }, "configurations": { "development": { - "optimization": true, + "optimization": { + "scripts": true, + "styles": { + "minify": true, + "inlineCritical": false + }, + "fonts": true + }, "outputHashing": "all", "sourceMap": false, "namedChunks": false, @@ -88,7 +95,14 @@ "with": "src/environments/environment.beta.ts" } ], - "optimization": true, + "optimization": { + "scripts": true, + "styles": { + "minify": true, + "inlineCritical": false + }, + "fonts": true + }, "outputHashing": "all", "sourceMap": false, "namedChunks": false, @@ -127,7 +141,14 @@ "with": "src/environments/environment.prod.ts" } ], - "optimization": true, + "optimization": { + "scripts": true, + "styles": { + "minify": true, + "inlineCritical": false + }, + "fonts": true + }, "outputHashing": "all", "sourceMap": false, "namedChunks": false,