You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no idea what i am doing wrong here, i'm trying to use the --match option to recursively minify all js files in a directory with the cli on windows.
Thx for the quick fix, just a quick question since the docs don't mention this.
Is --match case sensitive? If so, is there a way to match case insensitive?
It works for me, but I have to enclose it in quotes for bash: minify -vo outdir --match '~(?i).*\.(html)$' -- .
Did you use the latest release or built a release yourself? I don't think the feature is in the latest prebuild binary yet, but I can publish if you prefer.
Activity
tdewolff commentedon Jan 29, 2026
Thanks, this was not working for Windows.
cmd: fix --match for Windows, see #901
cmd: fix --match for Windows, fixes tdewolff#901
movedoa commentedon Jan 29, 2026
Thx for the quick fix, just a quick question since the docs don't mention this.
Is --match case sensitive? If so, is there a way to match case insensitive?
cmd: ignore bad softlinks, remove verbosity level for warning (now 1 …
tdewolff commentedon Jan 29, 2026
Something is mentioned in the docs, but I've improved it and added some fixes. Check https://github.com/tdewolff/minify/tree/master/cmd/minify#matching-and-includeexclude-patterns for an example of using case insensitivity!
movedoa commentedon Feb 16, 2026
I switched to regex since in need to match case sensitive anyway but i'm not having much luck.
Does the fix also fix regex for windows?
I'm using
--match ~(?i).*\.(html)$but it doesn't match any html filestdewolff commentedon Feb 16, 2026
It works for me, but I have to enclose it in quotes for bash:
minify -vo outdir --match '~(?i).*\.(html)$' -- .Did you use the latest release or built a release yourself? I don't think the feature is in the latest prebuild binary yet, but I can publish if you prefer.
movedoa commentedon Feb 20, 2026
A pre release binary would be appreciated. I tested with the current release
tdewolff commentedon Feb 21, 2026
Done!
movedoa commentedon Feb 25, 2026
New version works. Thank you :)