为什么Meteor不解析SCSS导入?

时间:2015-09-18 07:17:59

标签: meteor sass

我在client文件夹中有两个文件:style.scssstaff.scss。在前者中,我导入了后者:

//...
$spacing-unit: 1em;
//...
@import "./staff.scss"

并在staff.scss我尝试使用style.scss中定义的变量:

//...
.staff {
    margin-bottom: $spacing-unit;
}

但我发生了以下错误:

=> Errors prevented startup:                  

   While building the application:
   /Users/rishatmuhametshin/dev/smth/client/staff.scss:3:14: Scss
   compiler error: Undefined variable: "$spacing-unit".


=> Your application has errors. Waiting for file change.

这让我觉得Meteor忽略了导入。

那我该怎么办?

0 个答案:

没有答案
相关问题