metaskills/less-rails — Issue #7: Cannot get compression to work
Author: erdah
Created: 2011-10-11 07:24:14+00:00
State: open

I cannot get compression to work. In development mode nothing happens. In production mode I get NoMethodError.

config.less.compress = true

undefined method `less' for #
NoMethodError

I think Less should obey the app.config.assets.compress setting. Which is true per default in production mode. Maybe something similar to sass-rails:

initializer :setup_compression, :group => :all do |app|
if app.config.assets.compress
# Use sass's css_compressor
app.config.assets.css_compressor = CssCompressor.new
end
end

What do you think?