gulp-finish
v0.1.2
Published
Handler error of gulp plugins and end gulp task
Downloads
4
Readme
gulp-finish
Yet, it's same as gulp-plumber. But gulp-finish just stop gulp task when gulp plugins emit 'error' events.
Usage
Install
npm install --save-dev gulp-finish
Example gulpfile
var finish = require('gulp-finish');
var plugin = require('gulp-plugin');
gulp.src('./src/*.ext')
.pipe(finish())
.pipe(plugin())
.pipe(gulp.dest('./dist'));
You can pass in a callback for 'error' event of gulp plugin.
var finish = require('gulp-finish');
var plugin = require('gulp-plugin');
gulp.src('./src/*.ext')
.pipe(finish(function() {
// do something
}))
.pipe(plugin())
.pipe(gulp.dest('./dist'));
License
MIT