Skip to content

Instantly share code, notes, and snippets.

@ingowennemaring
Last active December 16, 2015 10:29
Show Gist options
  • Save ingowennemaring/5420528 to your computer and use it in GitHub Desktop.
Save ingowennemaring/5420528 to your computer and use it in GitHub Desktop.
Typical config.rb for Compass
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "css"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "fonts"
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
color_output = false
output_style = :compressed
environment = :production
line_comments = false
sass_options = {:debug_info => false}
#output_style = :expanded
#environment = :development
#line_comments = true
#sass_options = {:debug_info => true}
#asset_cache_buster :none
# Make a copy of sprites with a name that has no uniqueness of the hash.
#on_sprite_saved do |filename|
# if File.exists?(filename)
# FileUtils.cp filename, filename.gsub(%r{-s[a-z0-9]{10}\.png$}, '.png')
# end
#end
# Replace in stylesheets generated references to sprites
# by their counterparts without the hash uniqueness.
#on_stylesheet_saved do |filename|
# if File.exists?(filename)
# css = File.read filename
# File.open(filename, 'w+') do |f|
# f << css.gsub(%r{-s[a-z0-9]{10}\.png}, '.png')
# end
# end
#end
#more info:
#http://compass-style.org/help/tutorials/configuration-reference/
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass css scss && rm -rf sass && mv scss sass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment