create a read stream from a glob of files. can be used as a loader-cache loader, or by itself as an a-la-carte replacement or addition to vinyl src.
Install with npm
$ npm i stream-loader --save
Files are loaded as vinyl files, so gulp plugins should be completely compatible.
var jshint = require('gulp-jshint');
var minify = require('gulp-minify');
var loader = require('stream-loader');
var dest = require('dest');
var src = loader();
src(['*.js'])
.pipe(jshint())
.pipe(minify())
.pipe(dest('dist/'));
Stack src
src definitions can be stacked:
var src = loader();
src(['*.js'])
.pipe(src('*.txt'))
.pipe(src('*.json'))
.pipe(src('*.md'))
contents property on a file object. Abstraction from vinyl-fs to support stream or… more | homepagestat property on a file object. Abstraction from vinyl-fs to support stream or… more | homepagestat property on a file object. | homepageInstall dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on October 06, 2015.