App-shell builder

ID: @angular-devkit/build-angular:app-shell

Hint

App shell is a way to render a portion of your application via a route at build time. This gives users a meaningful first paint of your application because the browser does not need to initialize any JavaScript, just rendering the HTML.

Tutorials

Options

appModuleBundle#

Script that exports the Server AppModule to render. This should be the main JavaScript outputted by the server target. By default we will resolve the outputPath of the serverTarget and find a bundle named 'main' in it (whether or not there's a hash tag).

Type string

browserTarget#

Target to build.

Type string

inputIndexPath#

The input path for the index.html file. By default uses the output index.html of the browser target.

Type string

outputIndexPath#

The output path of the index.html file. By default will overwrite the input file.

Type string

route#

The route to render.

Type string
Default /

serverTarget#

Server target to use for rendering the app shell.

Type string