当我使用Brunch.io将我的SCSS代码编译到CSS时,它将以下内容添加到CSS中。
@media -sass-debug-info{filename{font-family:file\:[*FILE PATH REMOVED*]/reset\.scss}line{font-family:\000031}}
我已经尝试在Brunch配置文件中添加一个“安静”标志(如此处所示:https://github.com/brunch/sass-brunch),但这似乎没有什么区别。
如何阻止编译器添加这些行?
尝试禁用:debug_info
为false。在config.rb中像这样:
debug_info = false
或者在早午餐配置文件中,您应该编辑以下行:
config =
plugins:
sass:
debug: 'comments'
你需要在config.rb中以这种方式指定它(仅指定debug_info
本身是不够的)。
sass_options = {:debug_info => false}
用Compass 1.0.3和Sass 3.4.25测试