From b994bc51cd1905f2790eb6c925e5e375bf512649 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 5 Oct 2021 20:55:08 +0200 Subject: [PATCH] Add development configuration --- angular.json | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/angular.json b/angular.json index aaaf151..dd2c65b 100644 --- a/angular.json +++ b/angular.json @@ -83,6 +83,31 @@ "maximumWarning": "6kb" } ] + }, + "development": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.prod.ts" + } + ], + "optimization": false, + "sourceMap": true, + "namedChunks": true, + "extractLicenses": false, + "vendorChunk": false, + "buildOptimizer": false, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "7mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb" + } + ] } } }, @@ -94,8 +119,12 @@ "configurations": { "production": { "browserTarget": "farmmaps-lib-app:build:production" + }, + "development": { + "browserTarget": "farmmaps-lib-app:build:development" } - } + }, + "defaultConfiguration": "development" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n",