Rodrigo Rosenfeld Rosas
unread,May 24, 2012, 12:30:02 PM5/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
I was trying an concept and found an weird issue when trying to enable
compression in my development environment.
I'd like to be able to run my specs on the minified versions as well,
so, using my rails_sandbox_jasmine gem, I'd like to use it this way:
SIMULATE_PRODUCTION=1 rake sandbox_assets:serve
And in my development.rb, I've set it to:
config.assets.js_compressor = :uglifier
config.assets.compress = !!ENV['SIMULATE_PRODUCTION']
config.assets.digest = !!ENV['SIMULATE_PRODUCTION']
config.assets.debug = !ENV['SIMULATE_PRODUCTION']
The debug (concatenation) and digest feature work but the generated
assets are not minified.
Is that expected?
Thanks in advance,
Rodrigo.