没有文件或行参考的情况下如何运行罗盘编译? [英] How to run compass compile without file or line reference?

查看:73
本文介绍了没有文件或行参考的情况下如何运行罗盘编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行 compass编译并可能保持-output-style <时,如何抑制文件或行引用,例如下面的注释输出行? / code>默认展开?

How can I suppress file or line reference such as the commented output line below when running compass compile and possibly keep --output-style expanded by default?

/* line 85, ../../../app/stylesheets/simpla/style.sass */
.align-right { 
  float: right;
}

问题是,每当我改变sass 1行时,它会使50+行更改为我的CSS,以更新所有已调整的参考行号。

The problem is whenever I make 1 line change in sass, it makes 50+ line changes to my css to update all the reference line numbers that got adjusted. This makes it really hard to read the actual changes in my git commit.

推荐答案

没关系,只需弄清楚就可以了。在config / compass.rb中,设置:

Nevermind, just figured it out. In config/compass.rb, set:

line_comments = false

这将取消/删除已编译的CSS文件中的注释。

This will suppress/remove the comments from the compiled css files.

这篇关于没有文件或行参考的情况下如何运行罗盘编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆