Angular 9 References/ CLI
References

WebWorker generator

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

Creates a new generic web worker definition in the given or default project.

Options

--project#

The name of the project.
Type string

--snippet#

Add a worker creation snippet in a sibling file of the same name.
Type boolean
Default true

--target#

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