GN.
GN.

Reputation: 9819

Is there a Ruby Gem that Decompresses CSS?

Found myself in situation, where I need to decompress CSS through Middleware..(IE *cough *cough)

I've Googled, RubyGem'd, Github'd and haven't found anything

It seems solutions are a one way ticket. They compress (minify) but dont uncompress (unminify)

I hope I'm wrong, is there anything out there that can do this??

Upvotes: 2

Views: 155

Answers (2)

Daniel Evans
Daniel Evans

Reputation: 6808

Its highly unlikely that you really want to be decompressing assets on every IE request. Imagine firing up a JS runtime for every request just to compile less. Instead, consider storing a second copy of the assets that are uncompressed and can be served statically.

You may want to determine what about compiling your assets causes a problem with IE. It may be a bug in the compression software or you may need to change settings or to a different minifier. Or better yet, it could be an indication that you have a syntax error in your CSS that other browsers are forgiving you for when compressed, and IE is not.

Upvotes: 1

MetaSkills
MetaSkills

Reputation: 1854

It might be worth explaining the specific issue you are having with IE and then talk about solving that problem.

Upvotes: 0

Related Questions