Change Angular2Spa template to build server (prerendering) bundle explicitly. This simplifies deployment, fixes various compatibility issues (like #306) and makes debugging much easier for developers using the template.

This commit is contained in:
SteveSandersonMS
2016-09-28 10:55:45 +01:00
parent 30dfe5e8b5
commit e87aa1f088
7 changed files with 58 additions and 36 deletions

View File

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