mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 06:41:45 +08:00
docs: production build configuration for app-shell
ng run <Project>:app-shell will not trigger production build, to trigger production build, we should explicitly pass it as an argument.
This commit is contained in:
parent
8bc8eca027
commit
99c0178658
@ -48,7 +48,12 @@ build with the app shell target
|
||||
```
|
||||
ng run my-app:app-shell
|
||||
```
|
||||
If you would like to build for production you should run the following command
|
||||
```
|
||||
ng run my-app:app-shell:production
|
||||
ng run my-app:app-shell --configuration production
|
||||
```
|
||||
|
||||
Verify the build output
|
||||
Open dist/app-shell/index.html
|
||||
Open dist/index.html
|
||||
look for text "app-shell works!" which verifies that the app shell route was rendered as part of the output
|
||||
|
Loading…
x
Reference in New Issue
Block a user