Last active
August 17, 2017 11:41
-
-
Save xkr47/931a78b389c6172d0d9ecea8b76ae73c to your computer and use it in GitHub Desktop.
Simple gulp debug transform
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 gt = require('through-gulp'); | |
//... | |
gulp.src("...") | |
.pipe(/*...*/) | |
.pipe(gt(function visitFile(file, enc, cb) { | |
console.log("file '" + file.path + "' contents: " + file.contents.toString()); | |
cb(null, file); | |
}, function visitEnd(cb) { | |
console.log("No more files"); | |
cb(); | |
})) | |
.pipe(/*...*/) | |
//... | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment