Skip to content

Instantly share code, notes, and snippets.

Created Jan 20, 2010
What would you like to do?
put this file in config/initializers
require 'sass'
if /production|staging/.match(RAILS_ENV)
# Compress CSS (a small file is preferable in production)
Sass::Plugin.options[:style] = :compressed
# Expand CSS
Sass::Plugin.options[:style] = :expanded
# Generate CSS from SASS every time a controller is accessed
Sass::Plugin.options[:always_update] = true
# Insert comments in the CSS about the line numbers of the Sass source
Sass::Plugin.options[:line_comments] = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment