Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
CssCompressor is overriding default css compressor set in the rails environment #109
I am using the asset pipeline in rails 3.2.x . I set up
I figured out that yui is never being loaded, instead Sass::Rails::CssCompressor is being loaded overriding the value set at the environment level.
I tested this with sprockets 2.1.3 version (which was released in late April 2012) and am using the 3.2.5 of sass-rails .
the JS compressor is being set correctly, but the Css Compressor is being overridden from yui to sass-rails .
The main reason I found this was the compression takes about 7 minutes and since I want a digest it adds up to 15 minutes for CSS only . YUI takes only a few seconds ( did this manually for verification).
I have verified the same behavior in 2 projects using different MRIs ( Ruby 1.9.3 and JRuby 1.6.x )
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
The fix works like a charm. It never occurred to me to check the master / 3-2 version.
When is the next version release of sass-rails scheduled for ?
If not identified otherwise, this will be a problem for every one using the 3.2.x rails and depending on the released gems.