Skip to content

Instantly share code, notes, and snippets.

@yvesvanbroekhoven
Created January 13, 2016 11:20
Show Gist options
  • Save yvesvanbroekhoven/aa0eab7b0cb42274bf47 to your computer and use it in GitHub Desktop.
Save yvesvanbroekhoven/aa0eab7b0cb42274bf47 to your computer and use it in GitHub Desktop.
Compass not compiling anymore in older Rails projects?
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "public/stylesheets"
sass_dir = "app/assets/stylesheets"
http_images_dir = "images"
images_dir = "public/images"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
output_style = environment == :production ? :compressed : :expanded
# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false
line_comments = environment == :production ? false : true
@yvesvanbroekhoven
Copy link
Author

Remove compass-rails gem from your Gemfile and run the watcher like it's 2007:

$ compass watch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment