Update deprecated prod configuration

This commit is contained in:
Adam Saghy
2023-09-18 13:32:13 +02:00
parent 96559d9372
commit 2f6df53552
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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.
+2 -2
View File
@@ -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",