vite-plugin-image-optimizer icon indicating copy to clipboard operation
vite-plugin-image-optimizer copied to clipboard

Use Glob patterns instead of regex for include / exclude

Open cmahnke opened this issue 1 year ago • 0 comments

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.

cmahnke avatar Nov 10 '24 17:11 cmahnke