From 2f6df535522e2d8a4106a0ca8593de73575e2405 Mon Sep 17 00:00:00 2001 From: Adam Saghy Date: Mon, 18 Sep 2023 13:32:13 +0200 Subject: [PATCH] Update deprecated `prod` configuration --- README.md | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e5c3bd4b7..6dd8a82d5 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Run `ng generate component component-name` to generate a new component. You can ### Build -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--configuration production` flag for a production build. Run `npm run build:prod` to build a production artifacts Instead. diff --git a/package.json b/package.json index cfbaa3565..e84b8fe65 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "license": "MPL-2.0", "scripts": { "ng": "ng", - "build": "node version.js && npm run env -s && ng build --prod --output-hashing=none", - "build:prod": "node version.js && node --max-old-space-size=16384 ./node_modules/@angular/cli/bin/ng build --prod --output-hashing=none --base-href=/web-app/", + "build": "node version.js && npm run env -s && ng build --configuration production --output-hashing=none", + "build:prod": "node version.js && node --max-old-space-size=16384 ./node_modules/@angular/cli/bin/ng build --configuration production --output-hashing=none --base-href=/web-app/", "start": "npm run env -s && ng serve --aot --proxy-config proxy.conf.js", "serve:dev": "npm run env -s && ng serve", "serve:sw": "npm run build -s && npx http-server ./dist -p 4200",