-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
It looks like the glob and regex matchers return true on empty streams. When I run the following tasks on a directory with no scss files:
gulp.task('styles', function () {
return gulp.src(['app/styles/*.scss'])
.pipe($.if('*.scss', gulpDebug() ))
.pipe(gulp.dest('.tmp/styles'))
});gulp.task('styles', function () {
return gulp.src(['app/styles/*.scss'])
.pipe($.if(/scss$/, gulpDebug() ))
.pipe(gulp.dest('.tmp/styles'))
});gulpDebug is fired both times.
This is mostly an issue when running gulp-changed along with a task that takes a while to spin up or errors with an empty stream.
I didn't test function conditions, so not sure what happens there.
Metadata
Metadata
Assignees
Labels
No labels