如何从Brunch.io编译的CSS中删除SASS调试?

问题描述 投票:0回答:2

当我使用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),但这似乎没有什么区别。

如何阻止编译器添加这些行?

sass compass-sass brunch
2个回答
0
投票

尝试禁用:debug_info为false。在config.rb中像这样:

debug_info = false

或者在早午餐配置文件中,您应该编辑以下行:

config =
   plugins:
     sass:
         debug: 'comments'

0
投票

你需要在config.rb中以这种方式指定它(仅指定debug_info本身是不够的)。

sass_options = {:debug_info => false}

用Compass 1.0.3和Sass 3.4.25测试

Useful blog

© www.soinside.com 2019 - 2024. All rights reserved.