mathisonian / gulp-sass-bulk-import

gulp task to allow importing directories in your SCSS
MIT License
41 stars 13 forks source link

Allow includePath option. #23

Open fumikito opened 6 years ago

fumikito commented 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.