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
26 lines
394 B
JSON
Executable File
26 lines
394 B
JSON
Executable File
|
|
{
|
|
"index": "/index.html",
|
|
"assetGroups": [{
|
|
"name": "app",
|
|
"installMode": "prefetch",
|
|
"resources": {
|
|
"files": [
|
|
"/favicon.ico",
|
|
"/index.html",
|
|
"/*.css",
|
|
"/*.js"
|
|
]
|
|
}
|
|
}, {
|
|
"name": "assets",
|
|
"installMode": "lazy",
|
|
"updateMode": "prefetch",
|
|
"resources": {
|
|
"files": [
|
|
"/assets/**"
|
|
]
|
|
}
|
|
}]
|
|
}
|