angular-docs-cn/packages/service-worker/config/src
George Kalpakas acd8734937 fix(service-worker): throw when using the unsupported `versionedFiles` option in config (#33903)
In 5d5c94d83, the deprecated `versionedFiles` option from the SW
asset-group configuration in `ngsw-config.json`. As a result, the
option would be silently ignored and the runtime behavior of the SW
would change (i.e. some files might not be cached and available offline
any more). This change could be easily go unnoticed by the developer.

This commit ensures this does not happen by throwing a build-time error,
when detecting the unsupported `versionedFiles` option with an error
message prompting the user to use the `files` option instead.

Jira issue: [FW-1727](https://angular-team.atlassian.net/browse/FW-1727)

PR Close #33903
2019-11-21 11:43:58 -08:00
..
duration.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
filesystem.ts docs: convert all `@experimental` tags to `@publicApi` tags (#26595) 2018-10-19 14:35:52 -07:00
generator.ts fix(service-worker): throw when using the unsupported `versionedFiles` option in config (#33903) 2019-11-21 11:43:58 -08:00
glob.ts feat(service-worker): add support for `?` in SW config globbing (#24105) 2018-07-06 13:50:17 -07:00
in.ts feat(service-worker): remove deprecated `versionedFiles` option (#32862) 2019-10-02 09:30:59 -07:00