piping
piping copied to clipboard
Added options and logic to include filenames
This pull request is to allow specifying:
options.firstChar: '.' and options.filenameStarts: ['part','otherpart']
to include arbitrary names...
I personally use it like that: { firstChar: null, filenameStarts: ['live'] }
in combination with webpack modulesDirectories when required files are specified like that:
import App from 'live/activecomponents/app/app.js';
Would an "include" option which takes a regex, similar to the current "ignore", fit your use case? I'm reluctant to add highly specific options which could be done more generically, but I would be happy to accept a PR for "include".
I would then go for an array of regexes... A single regex would not be enough for me...
Let me know if that's ok with you