admin管理员组文章数量:1314442
I am trying to add bourbon as a dependency to a project where grunt-contrib-sass
is used. node-bourbon has the following to say about grunt and Sass integration:
grunt.initConfig({
sass: {
dist: {
options: {
// THIS IS THE LINE I ADDED TO MY CONFIG
includePaths: require('bourbon').includePaths,
outputStyle: 'pressed'
},
files: {
'path/to/output.css': 'path/to/input.scss'
}
}
}
});
However, when running grunt I get the following error:
OptionParser::InvalidOption: invalid option: --include-paths
This error appears with any array of paths given to includePaths
, not just bourbon.
What am I doing wrong?
I am trying to add bourbon as a dependency to a project where grunt-contrib-sass
is used. node-bourbon has the following to say about grunt and Sass integration:
grunt.initConfig({
sass: {
dist: {
options: {
// THIS IS THE LINE I ADDED TO MY CONFIG
includePaths: require('bourbon').includePaths,
outputStyle: 'pressed'
},
files: {
'path/to/output.css': 'path/to/input.scss'
}
}
}
});
However, when running grunt I get the following error:
OptionParser::InvalidOption: invalid option: --include-paths
This error appears with any array of paths given to includePaths
, not just bourbon.
What am I doing wrong?
Share Improve this question asked Nov 28, 2013 at 21:12 EliseElise 5,1444 gold badges39 silver badges54 bronze badges1 Answer
Reset to default 11node-bourbon
is using grunt-sass
rather than grunt-contrib-sass
. That's why the option isn't available and you get this error.
So either swap those two grunt tasks or replace includePaths
with loadPath
. That's the equivalent option in grunt-contrib-sass
.
本文标签: javascriptSetting up gruntcontribsass with nodebourbonStack Overflow
版权声明:本文标题:javascript - Setting up grunt-contrib-sass with node-bourbon - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741970903a2407831.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论