From 829f5e5f6ded05c97ecb83bfe9f9373f0271ea10 Mon Sep 17 00:00:00 2001 From: Etienne LOUPIAS <eloupias@grandlyon.com> Date: Mon, 3 Apr 2023 14:20:17 +0200 Subject: [PATCH] fix(config): add config asset for local build --- angular.json | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/angular.json b/angular.json index 17ca42ce4..5b36cae18 100644 --- a/angular.json +++ b/angular.json @@ -91,6 +91,7 @@ "serviceWorker": true, "ngswConfigPath": "ngsw-config.json" }, + "local": {}, "fr": { "localize": ["fr"] }, @@ -110,6 +111,9 @@ "production": { "browserTarget": "pamn:build:production" }, + "local": { + "browserTarget": "pamn:build:local" + }, "fr": { "browserTarget": "pamn:build:fr" }, diff --git a/package.json b/package.json index 4f41f75dc..05935152c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "2.2.0", "scripts": { "ng": "ng", - "start": "ng serve --configuration=fr --proxy-config proxy.conf.json", + "start": "ng serve --configuration=local,fr --proxy-config proxy.conf.json", "start-pwa": "npm run build:prod && http-server -p 8080 -c-1 dist/fr --proxy http://localhost:3000", "build:prod": "ng build --configuration=production,fr --output-path=dist --output-hashing=all --subresource-integrity", "build:dev": "ng build --configuration=production,fr --output-path=dist --output-hashing=all --subresource-integrity", -- GitLab