From cc72269fec134a25f11c8e43fd4d536683b9f16c Mon Sep 17 00:00:00 2001 From: Kilchenmann Date: Tue, 18 Jan 2022 11:40:25 +0100 Subject: [PATCH] chore(angular): optimize ng s in dev mode --- angular.json | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/angular.json b/angular.json index 3e3f6e1ce7..76d6aad74d 100644 --- a/angular.json +++ b/angular.json @@ -18,6 +18,7 @@ }, "architect": { "build": { + "defaultConfiguration": "development", "builder": "@angular-devkit/build-angular:browser", "options": { "aot": true, @@ -53,6 +54,16 @@ ] }, "configurations": { + "development": { + "optimization": false, + "sourceMap": false, + "namedChunks": true, + "aot": true, + "extractLicenses": false, + "vendorChunk": true, + "buildOptimizer": false, + "budgets": [] + }, "production": { "fileReplacements": [ { @@ -89,22 +100,12 @@ ], "optimization": false, "sourceMap": true, - "namedChunks": false, + "namedChunks": true, "aot": true, "extractLicenses": false, "vendorChunk": false, "buildOptimizer": false, - "budgets": [ - { - "type": "initial", - "maximumWarning": "8mb", - "maximumError": "8mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb" - } - ] + "budgets": [] } } }, @@ -114,6 +115,9 @@ "browserTarget": "dsp-app:build" }, "configurations": { + "development": { + "browserTarget": "dsp-app:build:development" + }, "production": { "browserTarget": "dsp-app:build:production" },