I use gulp-connect
like this:
gulp.task('watch', function() {
gulp.watch(paths.scss, ['scss']);
gulp.watch(distPaths, function() {
return gulp.src(distPaths)
.pipe(connect.reload());
});
});
The live reload bit works fine.
My question is, why the following doesn't work:
gulp.task('watch', function() {
gulp.watch(paths.scss, ['scss']);
gulp.watch(distPaths, connect.reload);
});
What the gulp.src(distPaths)
bit is for?
Also, what's the importance of return
?