Usage var gulp = require('gulp'); gulp.task('watch', function() { var restart = require('gulp-restart'); // will restart the entire gulp on every file change gulp.watch(['src/**/*'], restart); }); That's it.