@nx/angular:web-worker
Creates a new, generic web worker definition in the given or default project.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Creates a new, generic web worker definition in the given or default project.
The basic usage of the web-worker generator is defined below. You must provide a name for the web worker and the project to assign it to.
1nx g @nx/angular:web-worker myWebWorker --project=myapp
21nx generate web-worker ...
2By default, Nx will search for web-worker in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:web-worker ...
2Show what will be generated without writing to disk:
1nx g web-worker ... --dry-run
2The name of the worker.
The name of the project.
pathThe path at which to create the worker file, relative to the current workspace.
trueAdd a worker creation snippet in a sibling file of the same name.
falseSkip formatting files.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!