Add more build options

This commit is contained in:
Jim Martens 2023-08-12 17:01:51 +02:00
parent 3c91e5d8e0
commit 17b98e18ce
2 changed files with 20 additions and 1 deletions

View File

@ -70,6 +70,22 @@
],
"outputHashing": "all"
},
"productionDebug": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all",
"localize": ["de"]
},
"development": {
"buildOptimizer": false,
"optimization": false,
@ -94,6 +110,9 @@
"production": {
"browserTarget": "wahlrecht-frontend:build:production"
},
"productionDebug": {
"browserTarget": "wahlrecht-frontend:build:productionDebug"
},
"development": {
"browserTarget": "wahlrecht-frontend:build:development"
}

View File

@ -5,7 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:stats": "ng build --stats-json",
"build:stats": "ng build -c development --stats-json",
"build:production": "ng build -c production",
"build:production:stats": "ng build -c production --stats-json",
"analyze": "webpack-bundle-analyzer dist/wahlrecht-frontend/de/stats.json",