jetheredge / SquishIt

Lets you *easily* bundle some css and javascript! Check out the Google group if you have questions!
http://groups.google.com/group/squishit
MIT License
459 stars 119 forks source link

Css minifier breaks on special characters #322

Open fhrn71 opened 8 years ago

fhrn71 commented 8 years ago

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

AlexCuse commented 8 years ago

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)