【发布时间】:2014-08-28 17:28:15
【问题描述】:
我有一个像这样的 SCSS 文件
.seletor{
/* comment 1 */
.sub-selector{
}
/* comment 2 */
.sub-selector{
}
}
当我编译它时,我得到了这个
.seletor {
font-size: 8px;}
/* comment 1 */
/* comment 2 */ }
.seletor .sub-selector {
font-size: 8px; }
.seletor .sub-selector {
font-size: 8px; }
我想得到的是
.seletor {
font-size: 8px;}
/* comment 1 */
.seletor .sub-selector {
font-size: 8px; }
/* comment 2 */
.seletor .sub-selector {
font-size: 8px; }
所以 cmets 必须是我在 scss 文件中写入的确切位置。我如何实现这一目标?
【问题讨论】: