@nx/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.

1{ 2 "prod-build": { 3 "executor": "@nx/angular:delegate-build", 4 "options": { 5 "buildTarget": "app:build:production", 6 "outputPath": "dist/apps/app/production", 7 "tsConfig": "apps/app/tsconfig.json", 8 "watch": false 9 } 10 } 11} 12

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.