Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use sass compressor as the default CSS compressor

With the new sprockets-rails we need to explicitly set the CSS
compressor.

See https://github.com/rails/sprockets-rails#changes-from-rails-3x
  • Loading branch information...
commit 3eef1c7c5d0c4538efb9e061b6fe68011f0352b1 1 parent fa8a78d
Rafael Mendonça França rafaelfranca authored
2  railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
View
@@ -25,7 +25,7 @@
<%- unless options.skip_sprockets? -%>
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
- # config.assets.css_compressor = :sass
+ config.assets.css_compressor = :sass
# Whether to fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
Please sign in to comment.
Something went wrong with that request. Please try again.