mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
docs: add deploy URL and base HREF comparison
This commit is contained in:
parent
62d3c05c35
commit
d0a4b936b0
18
docs/design/deployurl-basehref.md
Normal file
18
docs/design/deployurl-basehref.md
Normal file
@ -0,0 +1,18 @@
|
||||
| | Deploy URL | Base HREF |
|
||||
|--|:--:|:--:|
|
||||
| Initial scripts (index.html) | ✅ 👍 | ✅ 👍 |
|
||||
| Initial stylesheets (index.html) | ✅ 👍 | ✅ 👍 |
|
||||
| Lazy scripts (routes/import()/etc.) | ✅ 👍 | ✅ 👍 |
|
||||
| Processed CSS resources (images/fonts/etc.) | ✅ 👍 | ✅ 👍 |
|
||||
| Relative template (HTML) assets | ❌ 👎 | ✅ 👍 |
|
||||
| Angular Router Default Base (APP_BASE_HREF) | ❌ | ✅ *1 |
|
||||
| Single reference in deployed Application | ❌ 👎 | ✅ 👍 |
|
||||
| Special resource logic within CLI | ✅ 👎 | ❌ 👍 |
|
||||
| Relative fetch/XMLHttpRequest | ❌ | ✅ |
|
||||
|
||||
✅ - has/affects the item/trait
|
||||
❌ - does not have/affect the item/trait
|
||||
👍 - favorable behavior
|
||||
👎 - unfavorable behavior
|
||||
|
||||
*1 -- Users with more complicated setups may need to manually configure the `APP_BASE_HREF` token within the application. (e.g., application routing base is `/` but assets/scripts/etc. are at `/assets/`)
|
Loading…
x
Reference in New Issue
Block a user