fix: Added serviceWorker env and fixed #19

This commit is contained in:
2025-05-20 20:58:52 +02:00
parent 90d5b5da1c
commit 7d98cc2c49
5 changed files with 53 additions and 9 deletions

View File

@@ -70,6 +70,30 @@
"with": "src/environments/environment.development.ts"
}
]
},
"swDevelopment": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"outputHashing": "all",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.swdev.ts"
}
],
"assets": [
{
"glob": "ngsw-worker.js",
"input": "node_modules/@angular/servce-worker",
"output": "."
},
"src/ngsw.json",
"src/manifest.webmanifest"
]
}
},
"defaultConfiguration": "production"