 <p>I solved it by going with gulp-tap.</p> <pre><code>conf.plugScss.files.forEach(function (file, index, files) { gulp.src(file) .pipe(rename({ prefix: "_", extname: ".scss" })) .pipe(tap(function (file, t) { file.contents = Buffer.concat([ new Buffer('HEADER'), file.contents ]); var fileCheck = function(err, stat) { if (err !== null &amp;&amp; err.code == 'ENOENT') { fs.writeFile('dist/' + file.path.split('/').reverse()[0], file.contents) } return null; } fs.stat('dist/' + file.path.split('/').reverse()[0], fileCheck.bind(this)); })); // for when gulp 4.0 releases // .pipe(gulp.dest(conf.plugScss.dist, {overwrite: false})) }); </code></pre>