Skip to content

Provide extension points in order to add custom behavior to the service worker file generated by the angular cli. #21197

@balteo

Description

@balteo

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[x] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

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

Metadata

Metadata

Assignees

Labels

area: service-workerIssues related to the @angular/service-worker packagefeatureIssue that requests a new featurefeature: under considerationFeature request for which voting has completed and the request is now under consideration

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions