You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -88,22 +88,22 @@ gulp.task('default', function () {
88
88
You can restore filtered files in a different place and use it as a standalone source of files (ReadableStream). Setting the `passthrough` option to `false` allows you to do so.
89
89
90
90
```js
91
-
var gulp =require('gulp');
92
-
var jscs=require('gulp-jscs');
93
-
var gulpFilter=require('gulp-filter');
91
+
constgulp=require('gulp');
92
+
constuglify=require('gulp-uglify');
93
+
constfilter=require('gulp-filter');
94
94
95
-
gulp.task('default', function () {
96
-
var filter=gulpFilter(['*', '!src/vendor'], {restore:true, passthrough:false});
@@ -125,9 +125,7 @@ Accepts a string/array with globbing patterns which are run through [multimatch]
125
125
If you supply a function you'll get a [vinyl file object](https://github.com/wearefractal/vinyl#file) as the first argument and you're expected to return true/false whether to include the file:
When set to `true` filtered files are restored with a PassThrough stream, otherwise, when set to `false`, filtered files are restored as a Readable stream.
0 commit comments