如何在CSS输出中启用SASS行号? [英] How do I enable SASS line numbers in CSS output?

查看:142
本文介绍了如何在CSS输出中启用SASS行号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用SASS,如何在CSS输出中启用行号?我发现了一篇文章,但我不太明白要修改的位置。

How can I enable line numbers in CSS output if I am using SASS? I found an article but I didn't quite understand where to make the modifications

http://pivotallabs.com/users/damon/blog/articles/765-standup-04-07 -2009-we-have-questions#comments

您能帮我吗?

推荐答案

有一个选项:line_comments 如果设置为true,Sass将在您的编译输出中放置行号。

There's an option called :line_comments if you set this to true, Sass will place line numbers in your compiled output.

如何设置此选项取决于你如何使用Sass。如果它在Rails,Merb或Rack应用程序中,您可以设置 Sass :: Plugin.options [:line_comments] = true

How to set this option depends on how you're using Sass. If it's in a Rails, Merb, or Rack application you can set Sass::Plugin.options[:line_comments] = true.

如果您使用指南针,请在配置文件中设置 line_comments = false

If you're using compass, set line_comments = false in your configuration file.

这篇关于如何在CSS输出中启用SASS行号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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