Created
September 12, 2014 21:15
-
-
Save doug/e67412595f823bd102a2 to your computer and use it in GitHub Desktop.
gulp-prefix.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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