build(docs-infra): enable ServiceWorker in cli config (#19795)
PR Close #19795
This commit is contained in:
parent
b6ccd9f7bd
commit
53c1efb50a
@ -61,7 +61,8 @@
|
|||||||
"src": "src/environments/environment.ts",
|
"src": "src/environments/environment.ts",
|
||||||
"replaceWith": "src/environments/environment.next.ts"
|
"replaceWith": "src/environments/environment.next.ts"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"serviceWorker": true
|
||||||
},
|
},
|
||||||
"stable": {
|
"stable": {
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
@ -69,7 +70,8 @@
|
|||||||
"src": "src/environments/environment.ts",
|
"src": "src/environments/environment.ts",
|
||||||
"replaceWith": "src/environments/environment.stable.ts"
|
"replaceWith": "src/environments/environment.stable.ts"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"serviceWorker": true
|
||||||
},
|
},
|
||||||
"archive": {
|
"archive": {
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
@ -77,7 +79,8 @@
|
|||||||
"src": "src/environments/environment.ts",
|
"src": "src/environments/environment.ts",
|
||||||
"replaceWith": "src/environments/environment.archive.ts"
|
"replaceWith": "src/environments/environment.archive.ts"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"serviceWorker": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -11,17 +11,14 @@
|
|||||||
"/pwa-manifest.json",
|
"/pwa-manifest.json",
|
||||||
"/app/search/search-worker.js",
|
"/app/search/search-worker.js",
|
||||||
"/assets/images/favicons/favicon.ico",
|
"/assets/images/favicons/favicon.ico",
|
||||||
"/assets/js/*.js"
|
"/assets/js/*.js",
|
||||||
|
"/*.css",
|
||||||
|
"/*.js"
|
||||||
],
|
],
|
||||||
"urls": [
|
"urls": [
|
||||||
"https://fonts.googleapis.com/**",
|
"https://fonts.googleapis.com/**",
|
||||||
"https://fonts.gstatic.com/s/**",
|
"https://fonts.gstatic.com/s/**",
|
||||||
"https://maxcdn.bootstrapcdn.com/**"
|
"https://maxcdn.bootstrapcdn.com/**"
|
||||||
],
|
|
||||||
"versionedFiles": [
|
|
||||||
"/*.bundle.css",
|
|
||||||
"/*.bundle.js",
|
|
||||||
"/*.chunk.js"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
Loading…
x
Reference in New Issue
Block a user