Provide extension points in order to add custom behavior to the service worker file generated by the angular cli. #21197
Labels
area: service-worker
Issues related to the @angular/service-worker package
feature: under consideration
Feature request for which voting has completed and the request is now under consideration
feature
Issue that requests a new feature
Projects
Milestone
I'm submitting a...
Current behavior
As of now, I can either register the angular-generated service worker (i.e.
/ngsw-worker.js
) or register my own custom service worker (see documentation: https://angular.io/api/service-worker/ServiceWorkerModule#static-members)Expected behavior
One should be able to add custom behavior to angular-generated service workers (i.e.
/ngsw-worker.js
). For instance what if I want to add business logic to the service worker. It would be nice to provide extension points in order to achieve this and document them.EDIT (gkalpak): Other related issues/issues that could be fixed by this: #24387, #26413, #30195, #46984
The text was updated successfully, but these errors were encountered: