Well in the short term I can't get it to work. The filter does not seem to apply it itself.
I am trying to get combres to work with my shaving application MVC 3. And I have everything to work except DotLessCssFilter.
The documentation states In order to apply a filter to your resource sets, you need to modify your Combres config file
I changed combres.config as follows:
<combres xmlns='urn:combres'>
<filters>
<filter type="Combres.Filters.DotLessCssFilter, Combres" acceptedResourceSets="dotLessCss" />
</filters>
<resourceSets url="~/combres.axd" defaultDuration="30" defaultVersion="1" defaultVersionGenerator="Combres.VersionGenerators.Sha512VersionGenerator">
<resourceSet name="siteCss" type="css">
<resource path="~/UI/Styles/1140.css" />
<resource path="~/UI/Styles/typeimg.css" />
<resource path="~/UI/Styles/layout.css" />
</resourceSet>
<resourceSet name="siteJs" type="js">
<resource path="~/UI/Scripts/opt/util.js" />
<resource path="~/UI/Scripts/opt/core.js" />
</resourceSet>
</resourceSets>
</combres>
And it combines files and minimizes them.
In one of my files, I have a simple syntax:
@sprite: url(/ui/styles/sprite.png);
.foo {
background-image: @sprite;
}
But it seems like he never missed a filter.
I don't know if this is an MVC problem or a general one.
Has anyone successfully used this filter?
Nothing! (EDIT)
See answer
source
share