Skip to content

Instantly share code, notes, and snippets.

@manuelvanrijn
Created April 4, 2013 06:29
Show Gist options
  • Save manuelvanrijn/5308296 to your computer and use it in GitHub Desktop.
Save manuelvanrijn/5308296 to your computer and use it in GitHub Desktop.
Enable SASS support for your Rails project within chrome using source maps
  1. Goto chrome://flags and enable Enable Developer Tools experiments
  2. Open de Developer toolbar and goto the General tab within settings. Check the Enable source maps
  3. Restart chrome
  4. Open de Developer toolbar and goto the Expirements tab. Check "Support for Sass"

Add the following to your config/environments/development.rb

config.assets.debug = true
config.sass.debug_info = true
config.sass.line_comments = false # source maps don't get output if this is true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment