RadValentin / postcss-prefix-selector

Prefix all CSS rules with a selector
MIT License
165 stars 16 forks source link

ignoreFiles/includeFiles accepting Regex? #90

Closed mellis481 closed 3 years ago

mellis481 commented 3 years ago

I'm wondering if there is a reason that ignoreFiles and includeFiles are just (optional) string arrays instead of also accepting regex. This would be helpful because if you wanted to ignore/include all eg. Ant Design CSS files you could use regex where you targeted css files that started with antd. You could also not have to deal with whether a CSS file was styles.css or styles.min.css.

If this would be a desirable enhancement, I could potentially try to fork the repo and create a PR.

mellis481 commented 3 years ago

https://github.com/RadValentin/postcss-prefix-selector/pull/91

RadValentin commented 3 years ago

Sounds good to me, left comments on the PR. Thanks for contributing!