Support loading prerenderer boot module via Webpack config; use this in Angular 2 template

This commit is contained in:
SteveSandersonMS
2016-03-01 00:04:51 +00:00
parent 47ba251923
commit bfc993af50
6 changed files with 179 additions and 157 deletions

View File

@@ -2,7 +2,8 @@
ViewData["Title"] = "Home Page";
}
<app asp-prerender-module="ClientApp/boot-server">Loading...</app>
<app asp-prerender-module="ClientApp/boot-server"
asp-prerender-webpack-config="webpack.config.js">Loading...</app>
@section scripts {
<script src="~/dist/main.js" asp-append-version="true"></script>