如何在CSS输出中启用SASS行号?

hex*_*hex 3 css ruby sass compass-sass

如果我使用SASS,如何在CSS输出中启用行号?我发现了一篇文章,但我不太明白在哪里进行修改

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

你可以帮帮我吗?

chr*_*ein 10

:line_comments如果将此参数设置为true,则会调用一个选项,Sass会在编译输出中放置行号.

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

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

  • 在compass.config中,sass_options = {:line_comments => true} (2认同)