Javascript 使用node bourbon设置grunt contrib sass
我试图将bourbon作为一个依赖项添加到一个使用Javascript 使用node bourbon设置grunt contrib sass,javascript,node.js,sass,gruntjs,bourbon,Javascript,Node.js,Sass,Gruntjs,Bourbon,我试图将bourbon作为一个依赖项添加到一个使用grunt contrib sass的项目中。关于grunt和Sass的集成有以下几点: grunt.initConfig({ sass: { dist: { options: { // THIS IS THE LINE I ADDED TO MY CONFIG includePaths: require('bourbon').includePaths, outputStyl
grunt contrib sass
的项目中。关于grunt和Sass的集成有以下几点:
grunt.initConfig({
sass: {
dist: {
options: {
// THIS IS THE LINE I ADDED TO MY CONFIG
includePaths: require('bourbon').includePaths,
outputStyle: 'compressed'
},
files: {
'path/to/output.css': 'path/to/input.scss'
}
}
}
});
但是,在运行grunt时,我会出现以下错误:
OptionParser::InvalidOption: invalid option: --include-paths
此错误出现在指定给includePaths
的任何路径数组中,而不仅仅是bourbon
我做错了什么?
node bourbon
正在使用而不是。这就是为什么该选项不可用,而您会遇到此错误
因此,要么交换这两个grunt任务,要么用替换includePath
。这是grunt contrib sass
中的等效选项