nx/packages/angular/docs/delegate-build-examples.md
2022-10-11 09:51:38 +00:00

44 lines
784 B
Markdown

## Examples
{% tabs %}
{% tab label="Basic Usage" %}
Delegate the build of the project to a different target.
```json
{
"prod-build": {
"executor": "@nrwl/angular:delegate-build",
"options": {
"buildTarget": "app:build:production",
"outputPath": "dist/apps/app/production",
"tsConfig": "apps/app/tsconfig.json",
"watch": false
}
}
}
```
{% /tab %}
{% tab label="Watch for build changes" %}
Delegate the build of the project to a different target.
```json
{
"prod-build": {
"executor": "@nrwl/angular:delegate-build",
"options": {
"buildTarget": "app:build:production",
"outputPath": "dist/apps/app/production",
"tsConfig": "apps/app/tsconfig.json",
"watch": true
}
}
}
```
{% /tab %}
{% /tabs %}