build: try to fix lighthouse 2

This commit is contained in:
Johannes Millan 2025-10-29 18:50:34 +01:00
parent af93197dff
commit 562251e2d5
4 changed files with 37 additions and 4 deletions

View file

@ -120,6 +120,38 @@
"extractLicenses": true,
"serviceWorker": "ngsw-config.json"
},
"productionWebNoSw": {
"outputPath": {
"base": "dist",
"browser": "browser"
},
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "20kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": true
},
"fonts": true
},
"outputHashing": "all",
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"serviceWorker": false
},
"stage": {
"baseHref": "",
"budgets": [