编译时波旁错误

时间:2015-09-24 03:34:33

标签: sass bourbon

我已经将波旁威士忌安装到空的样式表中并进行编译,我在波本语中遇到错误。

Bourbon 5.0.0.alpha.0

Sass 3.4.18

切掉波旁威士忌的这些部分,它会起作用。

// Bourbon 5.0.0.alpha.0
// http://bourbon.io
// Copyright 2011-2015 thoughtbot, inc.
// MIT License

@import "bourbon/settings/asset-pipeline";
@import "bourbon/settings/global-font-file-formats";
@import "bourbon/settings/scales";
@import "bourbon/settings/modular-scale";

@import "bourbon/functions/assign-inputs";
@import "bourbon/functions/contains";
@import "bourbon/functions/contains-falsy";
@import "bourbon/functions/is-length";
@import "bourbon/functions/is-light";
@import "bourbon/functions/is-number";
@import "bourbon/functions/is-size";
@import "bourbon/functions/shade";
@import "bourbon/functions/strip-unit";
@import "bourbon/functions/tint";
@import "bourbon/functions/unpack";
@import "bourbon/functions/modular-scale";

@import "bourbon/helpers/directional-values";
// @import "bourbon/helpers/font-source-declaration";

@import "bourbon/css3/font-face";

@import "bourbon/addons/border-color";
@import "bourbon/addons/border-radius";
@import "bourbon/addons/border-style";
@import "bourbon/addons/border-width";
//@import "bourbon/addons/buttons";
@import "bourbon/addons/clearfix";
@import "bourbon/addons/contrast-switch";
@import "bourbon/addons/ellipsis";
@import "bourbon/addons/font-stacks";
@import "bourbon/addons/hide-text";
@import "bourbon/addons/margin";
@import "bourbon/addons/padding";
//@import "bourbon/addons/position";
@import "bourbon/addons/prefixer";
@import "bourbon/addons/size";
//@import "bourbon/addons/text-inputs";
@import "bourbon/addons/timing-functions";
@import "bourbon/addons/word-wrap";

@import "bourbon/bourbon-deprecated";

包含上述所有样式表时的错误:

error style.scss (Line 22 of _font-source-declaration.scss: Invalid CSS after " eot": expected ")", was ": "#{$file-pa...")

1 个答案:

答案 0 :(得分:0)

我的问题来自于使用Scout app编译我的sass。显然Scout不再维护并使用旧版本的sass。我已经改为使用考拉,我的问题得到了解决。