运行grunt sass
Running "sass:dist" (sass) task
Warning: /home/max/dev/ang-news/src/scss/app.scss:2: file to import not found
or unreadable: "foundation"
Current dir: /home/max/dev/ang-news/src/scss/
Use --force to continue.
Aborted due to warnings.
这是app.scss
@import "settings";
@import "foundation";
这是我的Gruntfile.js sass
任务
sass: {
options: {
includedPaths: ['bower_componenets/foundation/scss'],
sourceMap: true
},
dist: {
options: {
outputStyle: 'nested',
},
files: {
'<%= yeoman.app %>/assets/css/app.css': '<%= yeoman.app %>/scss/app.scss'
}
}
},
另外,foundation.scss位于bower_componenets/foundation/scss
,所以我不知道为什么includedPaths
属性中的路径不起作用。