以下 SCSS 片段在使用compass compile
. 但是如果我使用-output_style compressed
CSS 则缺少.box-yellow
定义。.box-red
等生成,但黄色缺失。
$colors: red #f00, yellow #ff0, green #0f0, blue #00f;
@each $entry in $colors {
$name: nth($entry, 1);
$color: nth($entry, 2);
.box-#{$name} > header {
background: $color;
}
}
这可能是一个错误还是我在这里遗漏了什么?