gulp-sass-bulk-importer
v3.0.2
Published
import directories in your SCSS
Downloads
614
Maintainers
Readme
gulp-sass-bulk-importer
NOTE:
Forked from mathisonian/gulp-sass-bulk-import to upgrade the underlying dependencies.This upgrade changes the minimum node version needed, from 0.10 to 8.X.
gulp task to allow importing directories in your SCSS
installation
npm install --save-dev gulp-sass-bulk-importer
usage
in your .scss file
@import "some/path/*";
// becomes
// @import "some/path/file1.scss";
// @import "some/path/file2.scss";
// ...
in your gulpfile
var bulkSass = require('gulp-sass-bulk-importer');
gulp.task('css', function() {
return gulp
.src(srcDir + 'stylesheets/app.scss')
.pipe(bulkSass())
.pipe(
sass({
includePaths: ['src/stylesheets']
}))
.pipe( gulp.dest('./public/css/') );
});