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,