Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Example config.rb file for Compass
preferred_syntax = :sass
http_path = '/'
css_dir = 'assets/stylesheets'
sass_dir = 'assets/sass'
images_dir = 'assets/images'
javascripts_dir = 'assets/javascripts'
relative_assets = true
line_comments = true
# output_style = :compressed
@wesruv
wesruv commented Oct 22, 2013

This is great, I've been hunting for an example file for so long! Can't believe the Compass docs don't have more

@EliasTouil

Thanks !

@zerodburn

Thanks!

@careyestes

Thank you

@daniel-gg

what about haml integration with compass, couold you post some simple exmaple?

@nueverest

Here is a link for those interested in all of the settable config.rb options:
http://compass-style.org/help/tutorials/configuration-reference/

@peterobrien

BTW Compass will generate a config file for you when you 'compass create YourProject'

@bl4ckdu5t

Would have been nice if you included a commented require = extension since that is not usually generated with compass create

@joelbyrd

How do you turn on the --trace option? Would this be done in the config.rb file, and if so, how exactly?

@pillarcreation

You can do it from the Command Prompt, say when you type

compass watch

or

compass compile

Just add...

compass compile --trace

to the tail

@CassyJens

It looks like the above link for config.rb options no longer exists. Here is an updated URL: http://compass-style.org/help/documentation/configuration-reference/

@kiranu
kiranu commented Mar 12, 2015

sass_path = File.dirname(FILE)
css_path = File.join(File.dirname(FILE), "..", "css")
environment = :development
output_style = :compressed

@alvarojoao

thanks man! that was reallllyyy helpfull!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.