grunt-sass错误:要导入的文件未找到或不可读:"基础"

时间:2014-10-27 23:14:07

标签: sass gruntjs zurb-foundation

运行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属性中的路径不起作用。

0 个答案:

没有答案