1

I was interested in writing one gulp stream into a particular location inside of another stream, for example, if I had two files:

Stream A

Hello this is where I want {{File B}}

Stream B

a new kitten

Now I want to be able to have

var streamA = gulp.src(PATH_TO_FILE_A) var streamB = gulp.src(PATH_TO_FILE_B)

somehow I would like to write stream B into stream A at the position given. So that I have a new (single) stream that contains:

New Stream

Hello this is where I want a new kitten

I know that if Stream B was a string, I could just use the gulp-replace module, so is there some way to achieve this? Perhaps by returning a string from stream B?

user2662833
  • 1,005
  • 1
  • 10
  • 20

0 Answers0