Friday 21 April 2017

Will this gulp command wait for a dependent task?

I have the following gulp configuration:

gulp.task('bar', function() {
    return gulp.src(files, { base: './' })
        .pipe(gulp.dest('dist'))
});


gulp.task('foo', ['bar'], function() {
    // do something...
});

Will foo wait for bar to complete before it runs?



via Ben Aston

No comments:

Post a Comment