It appears that you have to be explicit in specifying the files that get compiled.
config.assets.precompile += %(asset1.js asset2.js style1.css) The default just contains application.(css|js) Hopefully this assists you. On Thursday, 24 May 2012 12:30:02 UTC-4, Rodrigo Rosenfeld Rosas wrote: > > 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. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/rPy5g41bdRUJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
