Friends

sass config.rg 设置说明

开发环境

environment = :development

environment = :production

调试开关

firesass = false

firesass = true

定义本地文件

cssdir = "css"
sass
dir = "sass"
extensionsdir = "sass-extensions"
images
dir = "images"
javascriptsdir = "js"
line
comments = false 设置是否显示行信息

绝对路径

relative_assets = true

压缩比例

output_style = (environment == :development) ? :expanded : :compressed

调试信息

sassoptions = (environment == :development && firesass == true) ? {:debuginfo => true} : {}

Written on August 21, 2014