In Angular 2 template, always load CSS via ExtractTextPlugin (otherwise you get a bad FOUC when loading server-prerendered page)

This commit is contained in:
SteveSandersonMS
2016-03-01 00:40:37 +00:00
parent f830a5f90a
commit a5509b86e4
9 changed files with 22 additions and 32 deletions

View File

@@ -5,10 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - WebApplicationBasic</title>
<base href="/" />
<environment names="Staging,Production">
<link rel="stylesheet" href="~/dist/site.css" />
</environment>
<link rel="stylesheet" href="~/dist/vendor.css" asp-append-version="true" />
<link rel="stylesheet" href="~/dist/styles.css" asp-append-version="true" />
</head>
<body>
@RenderBody()