Skip to content

Instantly share code, notes, and snippets.

@torgeir
Created July 1, 2015 08:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torgeir/7da4c63d1a200a534b87 to your computer and use it in GitHub Desktop.
Save torgeir/7da4c63d1a200a534b87 to your computer and use it in GitHub Desktop.
Debug gulp stream content
var through = require('through2');
function task () {
return gulp.src([ some, files ])
.pipe(concat('app.css'))
.pipe(through.obj(function (chunk, enc, callback) {
console.log(chunk.contents.toString())
this.push(chunk);
callback();
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment