mathisonian / gulp-sass-bulk-import

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

Ignore partial-directories (i.e. _partial) #4

Closed denisborovikov closed 9 years ago

denisborovikov commented 9 years ago

It could be useful to ignore certain directories inside *.

mathisonian commented 9 years ago

Thanks @denisborovikov!

This seems like a really useful feature, I'd be happy to merge. One thing though:

It might be nice to have this as an option instead of turned on by default? e.g. something like

gulp.task('css', function() {
    return gulp
            .src(srcDir + 'stylesheets/app.scss')
            .pipe(bulkSass({
                ignoreDirectories: '_*'
            }))
            .pipe(
                sass({
                    includePaths: ['src/stylesheets']
                }))
            .pipe( gulp.dest('./public/css/') );
});
denisborovikov commented 9 years ago

@mathisonian I'm not sure about that. Do you have normal directories in your projects started with underscore which you want to be compiled? I don't.

mathisonian commented 9 years ago

Alright, I buy that logic.

mathisonian commented 9 years ago

Ah! Just pushed v0.3.0 to npm https://www.npmjs.com/package/gulp-sass-bulk-import