docs: add app-shell production reference (#32471)

PR Close #32471
This commit is contained in:
Alan 2019-09-04 15:52:57 +02:00 committed by Miško Hevery
parent 04d4fea3e8
commit e213080c0b
1 changed files with 14 additions and 0 deletions

View File

@ -43,6 +43,12 @@ After running this command you will notice that the `angular.json` configuration
"browserTarget": "my-app:build",
"serverTarget": "my-app:server",
"route": "shell"
},
"configurations": {
"production": {
"browserTarget": "my-app:build:production",
"serverTarget": "my-app:server:production"
}
}
}
</code-example>
@ -55,4 +61,12 @@ Use the CLI to build the `app-shell` target.
ng run my-app:app-shell
</code-example>
Or to use the production configuration.
<code-example language="bash">
ng run my-app:app-shell:production
</code-example>
To verify the build output, open `dist/my-app/index.html`. Look for default text `app-shell works!` to show that the app shell route was rendered as part of the output.