Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Show comment Hide comment
@wesruv

wesruv 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

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

This comment has been minimized.

Show comment Hide comment
@EliasTouil

EliasTouil Jan 23, 2014

Thanks !

Thanks !

@zerodburn

This comment has been minimized.

Show comment Hide comment
@zerodburn

zerodburn Feb 11, 2014

Thanks!

Thanks!

@careyestes

This comment has been minimized.

Show comment Hide comment
@careyestes

careyestes Feb 26, 2014

Thank you

Thank you

@daniel-gg

This comment has been minimized.

Show comment Hide comment
@daniel-gg

daniel-gg Mar 6, 2014

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

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

@nueverest

This comment has been minimized.

Show comment Hide comment
@nueverest

nueverest Jun 11, 2014

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

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

@peteobrien

This comment has been minimized.

Show comment Hide comment
@peteobrien

peteobrien Jul 10, 2014

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

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

@josephrexme

This comment has been minimized.

Show comment Hide comment
@josephrexme

josephrexme Aug 25, 2014

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

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

@joelbyrd

This comment has been minimized.

Show comment Hide comment
@joelbyrd

joelbyrd Sep 22, 2014

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

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

@pillarcreation

This comment has been minimized.

Show comment Hide comment
@pillarcreation

pillarcreation Dec 10, 2014

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

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

This comment has been minimized.

Show comment Hide comment
@CassyJens

CassyJens Jan 6, 2015

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/

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

This comment has been minimized.

Show comment Hide comment
@kiranu

kiranu Mar 12, 2015

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

kiranu commented Mar 12, 2015

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

@alvarojoao

This comment has been minimized.

Show comment Hide comment
@alvarojoao

alvarojoao Sep 3, 2015

thanks man! that was reallllyyy helpfull!

thanks man! that was reallllyyy helpfull!

@brandonsueur

This comment has been minimized.

Show comment Hide comment
@brandonsueur

brandonsueur Oct 1, 2016

Thanks!

Thanks!

@Sangeethaself

This comment has been minimized.

Show comment Hide comment
@Sangeethaself

Sangeethaself Mar 27, 2017

Thanks

Thanks

@Zerefdev

This comment has been minimized.

Show comment Hide comment
@Zerefdev

Zerefdev Oct 3, 2017

Thanks

Zerefdev commented Oct 3, 2017

Thanks

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