Sass是否支持内联注释? [英] Does Sass support inline comments?
问题描述
我可以在我的 .scss
文件中保留这样的内嵌注释
thead {
display:table-header-group; // h5bp.com/t
}
我不想在我的css输出。
SASS中要考虑两种不同类型的注释。
- 单行注释
//
将被.scss预处理程序删除,并且不会出现在您的.css文件中。 -
多行注释
* /
是有效的CSS,并且会在从.scss到.css文件。
- 除了某些压缩模式,除非您使用
!
开始注释。请参见 http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#comments 。
- 除了某些压缩模式,除非您使用
听起来像内嵌注解 Can I keep an inline comment like this in my I don't want this comment in my css output. There are two different types of comments to consider in SASS. Multiline comments It sounds like inline comments 这篇关于Sass是否支持内联注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! code>是你要找的。 p>
.scss
filethead {
display: table-header-group; // h5bp.com/t
}
//
will be removed by the .scss pre-procesor, and won't appear in your .css file. */
are valid CSS, and will be preserved* between the translation from .scss to your .css file.
!
. See http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#comments. //
are what you're looking for.