Skip to content

Commit fcbe2f0

Browse files
committed
docs: add target precedence explanation and improve clarity
- Add explicit target resolution precedence in BREAKING CHANGE section - Clarify Configuration File options list is commonly used subset - Point users to schema.json for complete list including deprecated options Addresses external audit feedback on documentation completeness.
1 parent 086043f commit fcbe2f0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ You can also and modify your `angular.json` to archive the same:
7979
```
8080

8181
You can also use `prerenderTarget` instead of `buildTarget` for prerendered/SSG applications.
82+
83+
**Target Resolution Precedence:**
84+
85+
When multiple build target options are specified, they are resolved in this order:
86+
1. `prerenderTarget` (if specified) — highest priority, overrides all others
87+
2. `browserTarget` (deprecated, kept for compatibility)
88+
3. `buildTarget` (recommended)
89+
4. Default: `${project}:build:production` if none specified
90+
8291
There is no support for `universalBuildTarget` or `serverTarget` because GitHub Pages only supports static assets and no Server-Side Rendering!
8392

8493
We will then try to deploy the `dist/test/browser` folder to GitHub Pages.
@@ -415,7 +424,7 @@ This can be very useful because it outputs what would happen without doing anyth
415424

416425
## 📁 Configuration File <a name="configuration-file"></a>
417426

418-
To avoid all these command-line cmd options, you can write down your configuration in the `angular.json` file in the `options` attribute of your deploy project's architect. Just change the kebab-case to lower camel case. Common options in lower camel case:
427+
To avoid all these command-line cmd options, you can write down your configuration in the `angular.json` file in the `options` attribute of your deploy project's architect. Just change the kebab-case to lower camel case. Commonly used options in lower camel case (see schema.json for complete list including deprecated options):
419428

420429
- baseHref
421430
- buildTarget

0 commit comments

Comments
 (0)