У меня есть задача gulp, которая должна читать файл в переменной, а затем использовать его содержимое как вход для другой функции, которая выполняется на файлах в трубе. Как это сделать?
Пример psuedo-psuedo-code
gulp.task('doSometing', function() {
var fileContent=getFileContent("path/to/file.something"); //How?
return gulp.src(dirs.src + '/templates/*.html')
.pipe(myFunction(fileContent))
.pipe(gulp.dest('destination/path));
});