mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: update url from <base href>
(cherry picked from commit c6f73f4127)
This commit is contained in:
parent
0c9c270552
commit
94b1b530dc
2 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ The following list discusses all the `browser` builder options that will need to
|
|||
- `resourcesOutputPath` should be removed, this is now always `media`.
|
||||
- `vendorChunk` should be removed, as this was a performance optimization which is no longer needed.
|
||||
- `commonChunk` should be removed, as this was a performance optimization which is no longer needed.
|
||||
- `deployUrl` should be removed and is not supported. Prefer [`<base href>`](guide/routing/common-router-tasks) instead. See [deployment documentation](tools/cli/deployment#--deploy-url) for more information.
|
||||
- `deployUrl` should be removed and is not supported. Prefer [`<base href>`](guide/routing/router-reference#base-href) instead. See [deployment documentation](tools/cli/deployment#--deploy-url) for more information.
|
||||
- `ngswConfigPath` should be renamed to `serviceWorker`.
|
||||
|
||||
If the application is not using SSR currently, this should be the final step to allow `ng build` to function.
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ ng build --deploy-url /my/assets
|
|||
|
||||
```
|
||||
|
||||
The effect and purpose of `--deploy-url` overlaps with [`<base href>`](guide/routing/common-router-tasks). Both can be used for initial scripts, stylesheets, lazy scripts, and css resources.
|
||||
The effect and purpose of `--deploy-url` overlaps with [`<base href>`](guide/routing/router-reference#base-href). Both can be used for initial scripts, stylesheets, lazy scripts, and css resources.
|
||||
|
||||
Unlike `<base href>` which can be defined in a single place at runtime, the `--deploy-url` needs to be hard-coded into an application at build time.
|
||||
Prefer `<base href>` where possible.
|
||||
|
|
|
|||
Loading…
Reference in a new issue