Make sure all gulp file contents are available as buffer
JavaScript
Latest commit 96e10d7 Jan 25, 2014 @jeromew Add Travis
Failed to load latest commit information.
test Initial commit Jan 21, 2014
.gitignore Initial commit Jan 21, 2014
.travis.yml Add Travis Jan 26, 2014
Makefile Initial commit Jan 21, 2014
Readme.md Initial commit Jan 21, 2014
index.js Initial commit Jan 21, 2014
package.json Add Travis Jan 26, 2014

Readme.md

gulp-buffer

Some gulp plugins do not support streaming file contents. gulp-buffer and gulp-stream come to the rescue.

There are 3 main reasons why a gulp plugin may not support stream :

* The stream support is on the roadmap but has not been added to the plugin
* The underlying library used for the transformation does yet support a streaming API
* The content transformation is not very well suited for streaming (think of content.reverse() for example where you need the end of the file first)

In all these cases, simply add gulp-buffer in front of such a plugin, and it will make sure that the plugin is presented only with buffers.

When you want to go back to full streaming capabilities, add gulp-stream and it will make sure that all your files are streamed again.

build status

Installation

$ npm install gulp-buffer

Licence

MIT