Rails 3.1 Asset Pipeline Does Not Minimize

I upgrade my application to rails31 .. everything works fine, but I have a problem with the asset pipeline. im using rails3.1.rc5

My js and my css are combined, but not minimized. Im using:

RAILS_ENV=production rake assets:precompile

to precompile assets.

I have these settings in my production.rb

config.assets.compress = true
config.assets.js_compressor  = :uglifier
config.assets.css_compressor = :scss

The files are combined and get the name md5 in the name, but they are not reduced.

Any help would be appreciated

+5
source share
2 answers

Use this command:

rake RAILS_ENV=production RAILS_GROUP=assets assets:precompile
+2
source

All Articles