I have LESS resource set that I want to reference from another CSS resource set inside an ASP.NET MVC 4 web application.
When I include the LESS resource set in my MVC view, the less files is compiled to CSS properly.
The issue is that LESS resourcesets don't get compiled in the outputted CSS when it's referenced from another resourceset.
The reason for the need for referencing a resourceset with less files is because a resourceset cannot have both css and less files per #5
Here is my relevant parsts of my configuration for combres.xml
<filters>
<filter type="Combres.Filters.FixUrlsInCssFilter, Combres" />
<filter type="Combres.Filters.DotLessCssCombineFilter, Combres" acceptedResourceSets="siteLess" />
</filters>
<!-- ... -->
<resourceSet name="siteLess" type="css">
<resource path="~/content/css/iconSetSprite.less" />
</resourceSet>
<!-- ... -->
<resourceSet name="homeCss" type="css">
<resource reference="siteLess" />
</resourceSet>
The less file itself has the following mixin:
.ds-icon-heart{ .ds-icon-empty-heart; }
After @Html.CombresLink("siteLess") is called in the view, the LESS gets compiled to the following CSS:
.ds-icon-heart {
background-position: 0 -624px;
width: 17px;
height: 17px;
}
However, when that same LESS resource set is included in another CSS resource set the LESS the mixin does not get compiled.
After I called @Html.CombresLink("homeCss"), mixin .ds-icon-heart{ .ds-icon-empty-heart; } does not get compiled.
I have LESS resource set that I want to reference from another CSS resource set inside an ASP.NET MVC 4 web application.
When I include the LESS resource set in my MVC view, the less files is compiled to CSS properly.
The issue is that LESS resourcesets don't get compiled in the outputted CSS when it's referenced from another resourceset.
The reason for the need for referencing a resourceset with less files is because a resourceset cannot have both css and less files per #5
Here is my relevant parsts of my configuration for combres.xml
The less file itself has the following mixin:
After
@Html.CombresLink("siteLess")is called in the view, the LESS gets compiled to the following CSS:However, when that same LESS resource set is included in another CSS resource set the LESS the mixin does not get compiled.
After I called
@Html.CombresLink("homeCss"), mixin .ds-icon-heart{ .ds-icon-empty-heart; } does not get compiled.