docs: update App Shell guide to reflect its actual behavior (#40210)
PR Close #40210
This commit is contained in:
parent
5831d2b685
commit
f7642ceff3
|
@ -32,9 +32,22 @@ After running this command you will notice that the `angular.json` configuration
|
||||||
"server": {
|
"server": {
|
||||||
"builder": "@angular-devkit/build-angular:server",
|
"builder": "@angular-devkit/build-angular:server",
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "dist/my-app-server",
|
"outputPath": "dist/my-app/server",
|
||||||
"main": "src/main.server.ts",
|
"main": "src/main.server.ts",
|
||||||
"tsConfig": "tsconfig.server.json"
|
"tsConfig": "tsconfig.server.json"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"outputHashing": "media",
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.prod.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"sourceMap": false,
|
||||||
|
"optimization": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"app-shell": {
|
"app-shell": {
|
||||||
|
@ -67,6 +80,4 @@ Or to use the production configuration.
|
||||||
ng run my-app:app-shell:production
|
ng run my-app:app-shell:production
|
||||||
</code-example>
|
</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.
|
To verify the build output, open `dist/my-app/browser/index.html`. Look for default text `app-shell works!` to show that the app shell route was rendered as part of the output.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue