parent
04d4fea3e8
commit
e213080c0b
@ -43,6 +43,12 @@ After running this command you will notice that the `angular.json` configuration
|
|||||||
"browserTarget": "my-app:build",
|
"browserTarget": "my-app:build",
|
||||||
"serverTarget": "my-app:server",
|
"serverTarget": "my-app:server",
|
||||||
"route": "shell"
|
"route": "shell"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"browserTarget": "my-app:build:production",
|
||||||
|
"serverTarget": "my-app:server:production"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</code-example>
|
</code-example>
|
||||||
@ -55,4 +61,12 @@ Use the CLI to build the `app-shell` target.
|
|||||||
ng run my-app:app-shell
|
ng run my-app:app-shell
|
||||||
</code-example>
|
</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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user