From f7642ceff3e3653faf2a99fcb27d2b80f962f81a Mon Sep 17 00:00:00 2001 From: Hadrien TOMA Date: Sat, 19 Dec 2020 18:39:05 +0100 Subject: [PATCH] docs: update App Shell guide to reflect its actual behavior (#40210) PR Close #40210 --- aio/content/guide/app-shell.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/aio/content/guide/app-shell.md b/aio/content/guide/app-shell.md index 8804980873..82fef8ac23 100644 --- a/aio/content/guide/app-shell.md +++ b/aio/content/guide/app-shell.md @@ -32,9 +32,22 @@ After running this command you will notice that the `angular.json` configuration "server": { "builder": "@angular-devkit/build-angular:server", "options": { - "outputPath": "dist/my-app-server", + "outputPath": "dist/my-app/server", "main": "src/main.server.ts", "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": { @@ -67,6 +80,4 @@ Or to use the production configuration. ng run my-app:app-shell:production -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.