@nrwl/angular:web-worker

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

Usage

nx generate web-worker ...

By default, Nx will search for web-worker in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/angular:web-worker ...

Show what will be generated without writing to disk:

nx g web-worker ... --dry-run

Options

name

Required
string

The name of the worker.

path

string
Format: path

The path at which to create the worker file, relative to the current workspace.

project

Required
string

The name of the project.

snippet

boolean
Default: true

Add a worker creation snippet in a sibling file of the same name.

skipFormat

boolean
Default: false

Skip formatting files.