как передать данные обратно из gulp.on('data') на следующий шаг/канал, например..pipe gulp.dest Вот пример кода в кофе
gulp.src(src)
.on 'data',->
# make change to file object
# pass back the changed file object ?? how to pass it back to the next stream
.pipe gulp.dest(dest)