Skip to content

Commit 2820c12

Browse files
mhadailykyliau
authored andcommitted
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.
1 parent a93d747 commit 2820c12

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/documentation/stories/app-shell.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ build with the app shell target
4848
```
4949
ng run my-app:app-shell
5050
```
51+
If you would like to build for production you should run the following command
52+
```
53+
ng run my-app:app-shell:production
54+
ng run my-app:app-shell --configuration production
55+
```
5156

5257
Verify the build output
53-
Open dist/app-shell/index.html
58+
Open dist/index.html
5459
look for text "app-shell works!" which verifies that the app shell route was rendered as part of the output

0 commit comments

Comments
 (0)