Open fumikito opened 6 years ago
Passing option like below:
gulp.task('sass', function () { let includePath = [ './src/scss', './some/extra/library', './node_modules/bootstrap/scss' ]; return gulp.src([ './src/scss/**/*.scss' ]) .pipe(bulkImport({ includePaths: includePath })) .pipe($.sass({ includePaths : includePath })) .pipe(gulp.dest('./assets/css')); });
gulp-sass-bulk-import looks only into current file's folder, but this PR adds extra directory to seek. If you set includePaths to gulp-sass, same option will work properly.
Passing option like below:
gulp-sass-bulk-import looks only into current file's folder, but this PR adds extra directory to seek. If you set includePaths to gulp-sass, same option will work properly.