Make sure all gulp file contents are available as buffer
Want to see pretty graphs? Log in now!
npm install gulp-buffer
|1||downloads in the last day|
|106||downloads in the last week|
|254||downloads in the last month|
|Last Published By|
|Version||0.0.2 last updated 3 months ago|
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.
$ npm install gulp-buffer