Angular 9 References/ CLI
References

ServiceWorker generator

This is the documentation for Angular 9.
You can switch to the latest version Angular 10.
ng generate serviceWorker [--[option]=[value]]

Pass this schematic to the "run" command to create a service worker.

Options

--configuration#

The configuration to apply service worker to.
Type string
Default production

--project#

The name of the project.
Type string

--target#

The target to apply service worker to.
Type string
Default build