Skip to content

Commit

Permalink
docs: add app-shell production reference (#32471)
Browse files Browse the repository at this point in the history
PR Close #32471
  • Loading branch information
alan-agius4 authored and mhevery committed Sep 4, 2019
1 parent 2cd5d4c commit 32a6972
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions aio/content/guide/app-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,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>
Expand All @@ -56,4 +62,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.


0 comments on commit 32a6972

Please sign in to comment.