SquishIt icon indicating copy to clipboard operation
SquishIt copied to clipboard

Css minifier breaks on special characters

Open fhrn71 opened this issue 10 years ago • 1 comments

Hi,

I've a issue with the minifier when using special character in the css-content property. In my case I use content: '\A'. This resulting the line breaks up at the place where I used the \A because that's the character code of a line feed. I tried both build-in minifiers. How can I solve this? Any help would be appreciated. KR,

Frans

fhrn71 avatar Oct 27 '15 13:10 fhrn71

Can you try this package? https://www.nuget.org/packages/SquishIt/1.0.0-alpha2

It uses newer versions of YUI and ajaxmin, I'd be interested to see if they handle your case differently.

From SquishIt's perspective the only thing I can think of is to skip minification on the file that includes content: '\A' (using .AddMinified)

AlexCuse avatar Oct 27 '15 14:10 AlexCuse