I hereby claim:
- I am webmaxru on github.
- I am salnikov (https://keybase.io/salnikov) on keybase.
- I have a public key whose fingerprint is 5E98 E250 933E EC15 6DDF 9A47 CF7D 8C92 1A96 7D51
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
importScripts('workbox-sw.prod.v2.0.0.js'); | |
const fileManifest = [ | |
{ | |
"url": "index.html", | |
"revision": "a2153190bf7f353370efd3f79df6fd9a" | |
} | |
... | |
]; |
platformBrowserDynamic() | |
.bootstrapModule(AppModule) | |
.then(() => { | |
registerServiceWorker('sw-default') | |
}); | |
function registerServiceWorker(swName: string) { | |
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker | |
.register(`/${swName}.js`) |
module.exports = { | |
"globDirectory": "dist/", | |
"globPatterns": [ | |
"**/*.{txt,png,ico,html,js,json,css}" | |
], | |
"swDest": "dist/sw-default.js", | |
"globIgnores": [ | |
"../workbox-cli-config.js", | |
"3rdpartylicenses.txt" | |
] |
... | |
import { ServiceWorkerModule } from '@angular/service-worker' | |
@NgModule({ | |
imports: [ | |
... | |
ServiceWorkerModule.register('/ngsw-worker.js') | |
] | |
... |
{ | |
"index": "/index.html", | |
"appData": { | |
"test": true | |
}, | |
"assetGroups": [{ | |
"name": "appshell", | |
"resources": { | |
"files": [ | |
"/assets/**/*", |
/** | |
* @license | |
* Copyright Google Inc. All Rights Reserved. | |
* | |
* Use of this source code is governed by an MIT-style license that can be | |
* found in the LICENSE file at https://angular.io/license | |
*/ | |
/** | |
* @experimental | |
*/ |
{ | |
"index": "/index.html", | |
"appData": { | |
"test": true | |
}, | |
"assetGroups": [{ | |
"name": "appshell", | |
"resources": { | |
"files": [ | |
"/assets/**/*", |
{ | |
"configVersion": 1, | |
"index": "/index.html", | |
"appData": { | |
"test": true | |
}, | |
"assetGroups": [ | |
{ | |
"name": "appshell", | |
"installMode": "prefetch", |
{ | |
"index": "/index.html", | |
"assetGroups": [{ | |
"name": "app", | |
"installMode": "prefetch", | |
"resources": { | |
"files": [ | |
"/favicon.ico", | |
"/index.html" | |
], |