piping icon indicating copy to clipboard operation
piping copied to clipboard

Added options and logic to include filenames

Open manuxio opened this issue 8 years ago • 3 comments

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';

manuxio avatar Oct 29 '16 08:10 manuxio

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".

mdlawson avatar Nov 07 '16 09:11 mdlawson

I would then go for an array of regexes... A single regex would not be enough for me...

manuxio avatar Nov 07 '16 09:11 manuxio

Let me know if that's ok with you

manuxio avatar Nov 07 '16 23:11 manuxio