Skip to content

Commit

Permalink
Update Head.cshtml - use asp-src
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Oct 7, 2021
1 parent 46f10ef commit 1492dbb
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/Web/Grand.Web/Views/Shared/Head.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
@{
var supportRtl = workContext.WorkingLanguage.Rtl;

<link rel="stylesheet" type="text/css" href="/bundles/libs.css" />

<link rel="stylesheet" type="text/css" href="/assets/custom/style.css">
<link rel="stylesheet" type="text/css" asp-src="/bundles/libs.css">
<link rel="stylesheet" type="text/css" asp-src="/assets/custom/style.css">

<environment include="Development">
@if (supportRtl)
Expand All @@ -30,19 +29,19 @@
<environment include="Production">
@if (supportRtl)
{
<link rel="stylesheet" type="text/css" href="/bundles/style.rtl.min.css">
<link rel="stylesheet" type="text/css" asp-src="/bundles/style.rtl.min.css">
}
else
{
<link rel="stylesheet" type="text/css" href="/bundles/style.min.css">
<link rel="stylesheet" type="text/css" asp-src="/bundles/style.min.css">
}
</environment>

<environment include="Development">
<script src="/bundles/libs.js"></script>
<script src="/theme/script/validation-config.min.js"></script>
<script src="/theme/script/public.common.js"></script>
<script src="/theme/script/public.axios.js"></script>
<script asp-src="/bundles/libs.js"></script>
<script asp-src="/theme/script/validation-config.min.js"></script>
<script asp-src="/theme/script/public.common.js"></script>
<script asp-src="/theme/script/public.axios.js"></script>
</environment>
<environment include="Production">
<script src="/bundles/site.min.js"></script>
Expand Down

0 comments on commit 1492dbb

Please sign in to comment.