Skip to content

Instantly share code, notes, and snippets.

@jlong
Created January 20, 2010 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlong/282370 to your computer and use it in GitHub Desktop.
Save jlong/282370 to your computer and use it in GitHub Desktop.
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
else
# 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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment