in JavaScript by
Q:
Gulp Plumber vs. Watch

1 Answer

0 votes
by
Gulp Plumber vs. Watch
Gulp Plumber vs. Watch

The main difference between gulp-watch and gulp-plumber is that plumber helps to prevent pipe breaking caused by errors from gulp plugins, while watch just notifies.

Installation of plumber:

$ npm install --save-dev gulp-plumber

Benefits: Plumber ensures the system doesn't stop or block in case of any error.

Usage: In gulpfile.js

var plumber = require('gulp-plumber');
gulp.src('./src/*.js')
    .pipe(plumber())
    .pipe(jshint())
    .pipe(gulp.dest('./dist'));
Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

0 votes
0 votes
asked Feb 25, 2020 in JavaScript by miceperry
+1 vote
0 votes
asked Feb 15, 2020 in JAVA by rahuljain1
0 votes
0 votes
0 votes
asked Feb 25, 2020 in JavaScript by miceperry
0 votes
+1 vote
asked Aug 16, 2020 in JavaScript by RShastri
0 votes
asked Feb 25, 2020 in JAVA by miceperry
0 votes
asked Feb 15, 2020 in JAVA by rahuljain1
0 votes
asked Feb 15, 2020 in JAVA by rahuljain1
0 votes
asked Feb 15, 2020 in JAVA by rahuljain1
0 votes
asked Feb 15, 2020 in JAVA by rahuljain1
0 votes
...