sindresorhus / gulp-filter

Filter files in a `vinyl` stream
MIT License
315 stars 37 forks source link

fix(README): Filters as a file source must call filter#restore which … #57

Closed dhyegocalota closed 8 years ago

dhyegocalota commented 8 years ago

…is a function, not a object

sindresorhus commented 8 years ago

Nope: https://github.com/sindresorhus/gulp-filter/blob/4163b9add43a1c241fc2e9fcc13578067b6bae8f/test.js#L198

dhyegocalota commented 8 years ago

@sindresorhus, just give it a try: call filter.restore.pipe() like the sample.

sindresorhus commented 8 years ago

Works for me. Do note that you can't just copy-paste the example as gulp-jscs has changed its API.