Closed simevidas closed 9 years ago
@simevidas pipe support is added for notify, now you can:
gulp.task('styles', function () {
return gulp.src('source/css/*.css')
// …
.pipe(gulp.dest('public/css/'))
.pipe(server.notify());
});
thanks for your advice!
I apologize for my ignorance, but I’m not familiar with Gulp’s
.pipe()
mechanism. I was just wondering if it would be possible to triggerserver.notify
within a.pipe()
call.As you are already aware, invoking
server.notify
does not play nice withgulp.watch()
leading to code like this:How about this alternative approach:
I’m already using this pattern by using a custom gulp-livereload plugin (see here). I think this approach is more sensical and would love to have it provided by your plugin.