我的 sass 文件有以下设置:
基础.scss
@import "colors";
@import "forms";
_colors.scss
$gray: #ccc;
_forms.scss
form {
background: $gray;
}
当我运行grunt sass
构建 css 时,出现以下错误:
Running "sass:dist" (sass) task
Syntax error: Undefined variable: "$gray".
on line xx of sass/_forms.scss
Use --trace for backtrace.