我试图在我的sass文件中指定一个font-family变量,它给了我一个悲伤。以下是sass的定义:
$font-family-sans-serif: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
奇怪的是,如果我从Lato
和Helvetica Neue
删除引号,它就会编译得很好。如果我没有收到此错误消息:
ERROR in ./~/css-loader!./~/autoprefixer-loader!./~/sass-loader?
outputStyle=comporessed&includePaths[]=
/Users/micah/trackr/app/app/assets/bower_components
&includePaths[]=/Users/micah/trackr/app/app/assets/bower_components/bootstrap-sass-official/assets/stylesheets&includePaths[]
=/Users/micah/trackr/app/node_modules!./app/assets/stylesheets/landing.scss
File to import not found or unreadable: Lato
更新
更奇怪的是,即使生成错误,文件也会被编译并且css就在那里。