diff --git a/desktop/angular/package.json b/desktop/angular/package.json index c1c058c87..117a6ca0d 100644 --- a/desktop/angular/package.json +++ b/desktop/angular/package.json @@ -4,18 +4,18 @@ "scripts": { "ng": "ng", "start": "npm install && npm run build-libs:dev && ng serve --proxy-config ./proxy.json", - "build-libs": "NODE_ENV=production ng build --configuration production @safing/ui && NODE_ENV=production ng build --configuration production @safing/portmaster-api", - "build-libs:dev": "ng build --configuration development @safing/ui && ng build --configuration development @safing/portmaster-api", + "build-libs": "NODE_ENV=production ng build --configuration=production @safing/ui && NODE_ENV=production ng build --configuration=production @safing/portmaster-api", + "build-libs:dev": "ng build --configuration=development @safing/ui && ng build --configuration=development @safing/portmaster-api", "serve": "npm run build-libs:dev && ng serve --proxy-config ./proxy.json", "build:dev": "npm run build-libs:dev && ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "zip-dist": "node pack.js", - "chrome-extension": "NODE_ENV=production ng build --configuration production portmaster-chrome-extension", - "chrome-extension:dev": "ng build --configuration development portmaster-chrome-extension --watch", - "build": "npm run build-libs && NODE_ENV=production ng build --configuration production --base-href /ui/modules/portmaster/", - "build-tauri": "npm run build-libs && NODE_ENV=production ng build --configuration production tauri-builtin", + "chrome-extension": "NODE_ENV=production ng build --configuration=production portmaster-chrome-extension", + "chrome-extension:dev": "ng build --configuration=development portmaster-chrome-extension --watch", + "build": "npm run build-libs && NODE_ENV=production ng build --configuration=production --base-href /ui/modules/portmaster/", + "build-tauri": "npm run build-libs && NODE_ENV=production ng build --configuration=production tauri-builtin", "serve-tauri-builtin": "ng serve tauri-builtin --port 4100", "serve-app": "ng serve --port 4200 --proxy-config ./proxy.json", "tauri-dev": "npm install && run-s build-libs:dev && run-p serve-app serve-tauri-builtin" diff --git a/desktop/angular/src/environments/environment.ts b/desktop/angular/src/environments/environment.ts index 5ef6df251..f3cd6ad6d 100644 --- a/desktop/angular/src/environments/environment.ts +++ b/desktop/angular/src/environments/environment.ts @@ -1,5 +1,5 @@ // This file can be replaced during build by using the `fileReplacements` array. -// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// `ng build --configuration=production` replaces `environment.ts` with `environment.prod.ts`. // The list of file replacements can be found in `angular.json`. export const environment = {