documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Add --disable-compression option in Jammit::CommandLine #37

Closed nowhereman closed 14 years ago

nowhereman commented 14 years ago

E.g. jammit --disable-compression

Thanks for your work !

jashkenas commented 14 years ago

Hey nowhereman. The contents of your assets.yml file are passed through ERB before being used, so if you'd like to disable compression for a specific environment, or change any other setting, you can do there. Does that work for you, or do you have a different use case?

http://documentcloud.github.com/jammit/#configuration

nowhereman commented 14 years ago

You're right, I've included this line, in assets.yml : <%= "compress_assets: false" if ENV['RAILS_ENV'] == 'development' %>

and this line, in my rails template : ENV['RAILS_ENV'] ||= 'development'

And it works. Thanks !