Skip to content

Commit 9db3692

Browse files
author
kajan
committed
update _Layout.cshtml to load all bundles
1 parent 7fd724e commit 9db3692

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

AspNetCoreVueMpa.Web/Views/Shared/_Layout.cshtml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,30 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"/>
66
<title>@ViewData["Title"] - AspNetCoreVueMpa.Web</title>
77
<environment include="Development">
8+
<link rel="stylesheet" href="~/css/core.bundle.css" asp-append-version="true" type="text/css">
9+
<link rel="stylesheet" href="~/css/vendor.bundle.css" asp-append-version="true" type="text/css">
810
<link rel="stylesheet" href="~/css/styles.bundle.css">
911
</environment>
1012
<environment exclude="Development">
13+
<link rel="stylesheet" href="~/css/core.bundle.css.gz" asp-append-version="true" type="text/css">
14+
<link rel="stylesheet" href="~/css/vendor.bundle.css.gz" asp-append-version="true" type="text/css">
1115
<link rel="stylesheet" href="~/css/styles.bundle.css.gz">
1216
</environment>
1317
</head>
1418
<body>
1519
<div id="app"></div>
1620
@RenderBody()
1721
@RenderSection("Scripts", required: false)
22+
23+
<environment include="Development">
24+
<script type="text/javascript" src="~/js/runtime.bundle.js" asp-append-version="true"></script>
25+
<script type="text/javascript" src="~/js/core.bundle.js" asp-append-version="true"></script>
26+
<script type="text/javascript" src="~/js/vendor.bundle.js" asp-append-version="true"></script>
27+
</environment>
28+
<environment exclude="Development">
29+
<script type="text/javascript" src="~/js/runtime.bundle.js.gz" asp-append-version="true"></script>
30+
<script type="text/javascript" src="~/js/core.bundle.js.gz" asp-append-version="true"></script>
31+
<script type="text/javascript" src="~/js/vendor.bundle.js.gz" asp-append-version="true"></script>
32+
</environment>
1833
</body>
1934
</html>

0 commit comments

Comments
 (0)