【发布时间】:2014-05-04 16:11:42
【问题描述】:
我已经安装了基础 5 和凉亭。 by compass watch 编译基础文件没有问题,但是当我想使用 grunt-sass 插件时,我看到了这个错误:
Running "sass:development" (sass) task
Warning: C:\wamp\www\nik\myapp/scss/app.scss:2: error: file to import not found or unreadable: "foundation"
Use --force to continue.
Aborted due to warnings.
app.scss 的第 2 行是 @import "foundation"。
还有我的 Gruntfile.js 中的 grunt-sass:
sass: {
development: {
options: {
outputStyle: 'nested'
},
files: {
'.css/development/style.css': ['scss/app.scss', 'scss/style.scss']
}
},
production: {
options: {
outputStyle: 'compressed'
},
files: {
'.css/development/style.css': ['scss/app.scss', 'scss/style.scss']
}
}
我也测试了this solution,但它没有任何感情。
【问题讨论】:
-
问题已解决。当我们使用 grunt 编译基础 scss 文件时,我们应该使用 --libsass 来安装基础。
foundation new project_name --libsass -
您能否添加更多细节(也许也可以作为问题的答案?)
-
@streetlight 答案已添加。
标签: sass gruntjs zurb-foundation