gulp-modular-tasks
Version:
Projeto para modularizar as tasks do gulp
13 lines (11 loc) • 337 B
JavaScript
module.exports = function (gulp, plugins, source, changed) {
return function () {
plugins.livereload.listen();
source.forEach(function (watcher) {
gulp.watch(watcher.file, [watcher.task]);
});
return gulp.watch(changed).on('change', function (file) {
plugins.livereload.changed(file.path);
});
};
};