Skip to content

Commit 2a01596

Browse files
authored
Fixed Angular example for Custom Build Command
Using `ng build --prod` as a custom build command for an Angular project doesn't work since the Angular CLI isn't installed globally. This solution *does* work.
1 parent 7059109 commit 2a01596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/static-web-apps/github-actions-workflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The deployment always calls `npm install` before any custom command.
145145

146146
| Command | Description |
147147
|---------------------|-------------|
148-
| `app_build_command` | Defines a custom command to run during deployment of the static content application.<br><br>For example, to configure a production build for an Angular application enter `ng build --prod`. If left blank, the workflow tries to run the `npm run build` or `npm run build:Azure` commands. |
148+
| `app_build_command` | Defines a custom command to run during deployment of the static content application.<br><br>For example, to configure a production build for an Angular application create an npm script named `build-prod` to run `ng build --prod` and enter `npm run build-prod` as the custom command. If left blank, the workflow tries to run the `npm run build` or `npm run build:Azure` commands. |
149149
| `api_build_command` | Defines a custom command to run during deployment of the Azure Functions API application. |
150150

151151
## Route file location

0 commit comments

Comments
 (0)