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');
var watch = require('gulp-watch');
gulp.src(['gulpfile.js', './src/*.ext'])
.pipe(watch({ passThrough: false }))
.pipe(_if(/gulpfile.js/, reload()))
.pipe(gulp.dest('./dist'));