Skip to content

Instantly share code, notes, and snippets.

@webmaxru
Created October 26, 2017 14:58
Show Gist options
  • Save webmaxru/d1e14d28b9d31161235e99593ec1dda2 to your computer and use it in GitHub Desktop.
Save webmaxru/d1e14d28b9d31161235e99593ec1dda2 to your computer and use it in GitHub Desktop.
Default ngsw-config.json generated by Angular CLI
{
"index": "/index.html",
"assetGroups": [{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html"
],
"versionedFiles": [
"/*.bundle.css",
"/*.bundle.js",
"/*.chunk.js"
]
}
}, {
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**"
]
}
}]
}
@4F2E4A2E
Copy link

4F2E4A2E commented Jun 6, 2018

/** @deprecated As of v6 `versionedFiles` and `files` options have the same behavior. Use `files` instead. */

https://angular.io/guide/service-worker-config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment