This repository has been archived by the owner on Mar 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Sugar for tech filter #11
Comments
@tadatuta And what's wrong with this? const filter = require('through2-filter').obj;
...
.pipe(filter(file => file.tech !== 'bemhtml.js')) or do you want .pipe(withoutTech('bemhtml.js')) ? |
Yeah, feels like we need something like bundle.src('js', {filter: {tech: ['vanilla.js', 'browser.js', 'js']}})
// or
bundle.src('js', {filter: ({tech}) => ['vanilla.js', 'browser.js', 'js'].includes(tech) })
// instead of
bundle.src('js').pipe(filter(f => ['vanilla.js', 'browser.js', 'js'].indexOf(f.tech) !== -1)) It's a very common case in the new world |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sugar for
.pipe(require('through2-filter').obj(file => file.tech !== 'bemhtml.js'))
needed.The text was updated successfully, but these errors were encountered: