Skip to content

Commit

Permalink
update _Layout.cshtml to load all bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
kajan committed Feb 18, 2021
1 parent 7fd724e commit 9db3692
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions AspNetCoreVueMpa.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,30 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"/>
<title>@ViewData["Title"] - AspNetCoreVueMpa.Web</title>
<environment include="Development">
<link rel="stylesheet" href="~/css/core.bundle.css" asp-append-version="true" type="text/css">
<link rel="stylesheet" href="~/css/vendor.bundle.css" asp-append-version="true" type="text/css">
<link rel="stylesheet" href="~/css/styles.bundle.css">
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="~/css/core.bundle.css.gz" asp-append-version="true" type="text/css">
<link rel="stylesheet" href="~/css/vendor.bundle.css.gz" asp-append-version="true" type="text/css">
<link rel="stylesheet" href="~/css/styles.bundle.css.gz">
</environment>
</head>
<body>
<div id="app"></div>
@RenderBody()
@RenderSection("Scripts", required: false)

<environment include="Development">
<script type="text/javascript" src="~/js/runtime.bundle.js" asp-append-version="true"></script>
<script type="text/javascript" src="~/js/core.bundle.js" asp-append-version="true"></script>
<script type="text/javascript" src="~/js/vendor.bundle.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script type="text/javascript" src="~/js/runtime.bundle.js.gz" asp-append-version="true"></script>
<script type="text/javascript" src="~/js/core.bundle.js.gz" asp-append-version="true"></script>
<script type="text/javascript" src="~/js/vendor.bundle.js.gz" asp-append-version="true"></script>
</environment>
</body>
</html>

0 comments on commit 9db3692

Please sign in to comment.