From 9812b9ca71d95744bb90335eff6f4bf9a3351280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Tue, 18 Jan 2022 17:05:59 +0100 Subject: [PATCH] chore(angular): optimize ng s in dev mode (#640) --- 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" },