Esempio di file config.rb per sass scss

Un appunto per conservare il file config.rb, che dà istruzioni al preprocessore Sass di come compilare il css.

# This file is only needed for Compass/Sass integration. If you are not using
# Compass, you may safely ignore or delete this file.
# If you'd like to learn more about Sass and Compass, see the sass/README.txt
# file for more information.

# Change this to :production when ready to deploy the CSS to the live server.
environment = :development
#environment = :production

# In development, we can turn on the FireSass-compatible debug_info.
firesass = false
#firesass = true

# Location of the theme's resources.
css_dir         = "css"
sass_dir        = "sass"
extensions_dir  = "sass-extensions"
images_dir      = "images"
javascripts_dir = "js"

# Require any additional compass plugins installed on your system.
#require 'ninesixty'
#require 'zen-grids'

# Assuming this theme is in sites/*/themes/THEMENAME, you can add the partials
# included with a module by uncommenting and modifying one of the lines below:
#add_import_path "../../../default/modules/FOO"
#add_import_path "../../../all/modules/FOO"
#add_import_path "../../../../modules/FOO"

## You probably don't need to edit anything below this.

# 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 == :development) ? :expanded : :compressed

# To enable relative paths to assets via compass helper functions. Since Drupal
# themes can be installed in multiple locations, we don't need to worry about
# the absolute path to the theme from the server root.
relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
 line_comments = true

# Pass options to sass. For development, we turn on the FireSass-compatible
# debug_info if the firesass config variable above is true.
sass_options = (environment == :development && firesass == true) ? {:debug_info => true} : {}

Per maggiori informazioni su come funziona, casomai non fossero chiari i commenti in lingua inglese (le righe che cominciano con ‘#’ sono identificate come commenti dal compilatore che le ignora) presenti nel file, sono reperibili facilmente online. La documentazione ufficiale è un valido punto di inizio.