Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3.1 asset pipeline is not minifying

Im upgrading my app to rails31 .. everything works quite ok but i have a problem with the asset pipeline. im using rails3.1.rc5

My js and my css gets combined but not minified.. Im using:

RAILS_ENV=production rake assets:precompile

to precompile the 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 md5 in the name but they are not minified.

Any help would be appreciated

like image 863
koeckc Avatar asked Nov 27 '22 16:11

koeckc


1 Answers

Use this command:

rake RAILS_ENV=production RAILS_GROUP=assets assets:precompile
like image 156
Daniel Loureiro Avatar answered Dec 07 '22 00:12

Daniel Loureiro