@nrwl/angular:delegate-build

Delegates the build to a different target while supporting incremental builds.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.

Examples

Delegate the build of the project to a different target.

{ "prod-build": { "executor": "@nrwl/angular:delegate-build", "options": { "buildTarget": "app:build:production", "outputPath": "dist/apps/app/production", "tsConfig": "apps/app/tsconfig.json", "watch": false } } }

Options

buildTarget

Required
string

Build target used for building the application after its dependencies have been built.

outputPath

Required
string

The full path for the output directory, relative to the workspace root.

tsConfig

Required
string

The full path for the TypeScript configuration file, relative to the workspace root.

watch

boolean
Default: false

Whether to run a build when any file changes.