I'm having an issue when compressing css that has embedded asp.net blocks in the background-image url, it chops part of it out. Here is how we are using it:
var minifier = new Minifier();
minifier.MinifyStyleSheet(fileText, new CssSettings { AllowEmbeddedAspNetBlocks = true }, new CodeSettings { AllowEmbeddedAspNetBlocks = true });
and an example css is
.test {
background-image:url(<%=WebResource("Test.Resource.Image.png")%>);
}
is minified to
.test{background-image:("Test.Resource.Image.png")%>)}
var minifier = new Minifier();
minifier.MinifyStyleSheet(fileText, new CssSettings { AllowEmbeddedAspNetBlocks = true }, new CodeSettings { AllowEmbeddedAspNetBlocks = true });
and an example css is
.test {
background-image:url(<%=WebResource("Test.Resource.Image.png")%>);
}
is minified to
.test{background-image:("Test.Resource.Image.png")%>)}