vite-plugin-image-optimizer
vite-plugin-image-optimizer copied to clipboard
Use Glob patterns instead of regex for include / exclude
Describe the feature you'd like to request
It's a common practise to use glob patterns for include / exclude configurations, there are several existing modules like https://github.com/kaelzhang/node-ignore which is for example used by stylelint and implements well known .gitignore syntax
Describe the solution you'd like
A solution which fits in the expectations of the broader ecosystem, nothing special to a single plugin, which is even hand rolled.
Make .gitignore syntax the default
Additional context
Having string[] as possible argument, but not regex[] is also a bit counter intuitive
Validations
- [X] Read the docs.
- [X] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.