gulp-reload

A plugin for Gulp

gulp-reload

reload plugin for gulp

Experimental plugin, that will restart the current task (I hope so).

var reload = require('gulp-reload');
var _if = require('gulp-if');
 
gulp.src(['gulpfile.js', './src/*.ext'])
    .pipe(watch({ passThrough: false }))
    .pipe(_if(/gulpfile.js/, reload()))
    .pipe(gulp.dest('./dist'));

MIT License