stefankendall/compass-sass — pull request #10 by jolros (2012-03-23 21:00:59+00:00)
Title: Making GrassConfig.groovy environment aware

Well, my project is getting close to release, and we realize that we'd like to have our CSS files be smaller and more compact in production while still giving us the ability to debug in development. The following patch allows you to have an environment specific block like so:

grass {
sass_dir = "./src/stylesheets"
css_dir = "./web-app/css"
images_dir = "web-app/images"
relative_assets = true
framework_output_type = "scss"

line_comments = false
output_style = "compressed"
}
environments {
development {
grass {
line_comments = true
output_style = "compact"
}
}
}