38 lines
709 B
Markdown
38 lines
709 B
Markdown
## Examples
|
|
|
|
##### 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
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
##### 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
|
|
}
|
|
}
|
|
}
|
|
```
|