52 lines
1.0 KiB
JSON
52 lines
1.0 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
|
|
"index": "/index.html",
|
|
|
|
"navigationUrls": [
|
|
"/**",
|
|
"!/**/*.*",
|
|
"!/**/*__*",
|
|
"!/**/*__*/**",
|
|
"!/admin",
|
|
"!/admin/**"
|
|
],
|
|
|
|
"assetGroups": [
|
|
{
|
|
"name": "app",
|
|
"installMode": "prefetch",
|
|
"resources": {
|
|
"files": [
|
|
"/favicon.ico",
|
|
"/favicon.svg",
|
|
"/index.csr.html",
|
|
"/index.html",
|
|
"/manifest.webmanifest",
|
|
"/*.css",
|
|
"/*.js"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "assets",
|
|
"installMode": "lazy",
|
|
"updateMode": "prefetch",
|
|
"resources": {
|
|
"files": ["/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"]
|
|
}
|
|
}
|
|
],
|
|
|
|
"dataGroups": [
|
|
{
|
|
"name": "fonts",
|
|
"urls": ["https://fonts.googleapis.com/**", "https://fonts.gstatic.com/**"],
|
|
"cacheConfig": {
|
|
"maxSize": 20,
|
|
"maxAge": "30d",
|
|
"strategy": "performance"
|
|
}
|
|
}
|
|
]
|
|
}
|