nx/packages/angular/docs/delegate-build-examples.md
Isaac Mann afa5eb59fa
docs(core): document the @nrwl => @nx rescope (#16403)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-04-27 18:14:59 -04:00

44 lines
780 B
Markdown

## Examples
{% tabs %}
{% tab label="Basic Usage" %}
Delegate the build of the project to a different target.
```json
{
"prod-build": {
"executor": "@nx/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": "@nx/angular:delegate-build",
"options": {
"buildTarget": "app:build:production",
"outputPath": "dist/apps/app/production",
"tsConfig": "apps/app/tsconfig.json",
"watch": true
}
}
}
```
{% /tab %}
{% /tabs %}