Skip to content

Instantly share code, notes, and snippets.

@doug
Created September 12, 2014 21:15
Show Gist options
  • Save doug/e67412595f823bd102a2 to your computer and use it in GitHub Desktop.
Save doug/e67412595f823bd102a2 to your computer and use it in GitHub Desktop.
gulp-prefix.js
var through = require('through2')
var prefix = function(data) {
return through.obj(function(file, _, done) {
var stream = through()
stream.push(data)
file.contents = file.contents.pipe(stream)
this.push(file)
done()
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment