Skip to content


Browse files Browse the repository at this point in the history
update _Layout.cshtml to load gzipped resource in production environment
  • Loading branch information
kajan committed Feb 18, 2021
1 parent 8ae800f commit 140436b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AspNetCoreVueMpa.Web/Views/Shared/_Layout.cshtml
Expand Up @@ -4,7 +4,12 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"/>
<title>@ViewData["Title"] - AspNetCoreVueMpa.Web</title>
<link rel="stylesheet" href="~/css/styles.bundle.css">
<environment include="Development">
<link rel="stylesheet" href="~/css/styles.bundle.css">
<environment exclude="Development">
<link rel="stylesheet" href="~/css/styles.bundle.css.gz">
<div id="app"></div>
Expand Down

0 comments on commit 140436b

Please sign in to comment.