Gulp bourbon Unable to import bourbon link
I am running Gulp with node-sass, node-bourbon, node-neat. For now, things can get better, you can execute the sass css file without errors. unless i import bourbon and neatly at the top of the scss file. An error has occurred.
"stream.js:94 throw er;// Unhandled stream error in pipe.
Error: stdin: 1: import file not found or unreadable: "bourbon"
same source but with rough work. Any suggestions from people? ...
ps. this is my gulpfile.js.- https://gist.github.com/foonmod/71d8dee473226cdd46f6
+3
source to share
1 answer
The problem is using the property loadPath
for gulp-sass, which should be includePaths
.
Update your gulp-sass task in your Gist to look like this:
gulp.task('sass', function(){
gulp.src('sass/style.scss')
.pipe(sass({
includePaths: require('node-bourbon').includePaths,
style: 'compressed',
quiet: true
}))
.pipe(gulp.dest('css/'));
});
+3
source to share