fix(service-worker): deprecate versionedFiles
in asset-group resources (#23584)
Since `versionedFiles` behaves in the exact same way as `files`, there is no reaason to have both. Users should use `files` instead. This commit deprecates the property and prints a warning when coming across an asset-group that uses it. It should be completely removed in a future version. Note, it has also been removed from the default `ngsw-config.json` template in angular/devkit#754. PR Close #23584
This commit is contained in:

committed by
Alex Rickabaugh

parent
ad6052e397
commit
c6b618d020
@ -7,12 +7,9 @@
|
||||
"resources": {
|
||||
"files": [
|
||||
"/favicon.ico",
|
||||
"/index.html"
|
||||
],
|
||||
"versionedFiles": [
|
||||
"/*.bundle.css",
|
||||
"/*.bundle.js",
|
||||
"/*.chunk.js"
|
||||
"/index.html",
|
||||
"/*.css",
|
||||
"/*.js"
|
||||
]
|
||||
}
|
||||
}, {
|
||||
@ -25,4 +22,4 @@
|
||||
]
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user