-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simpler exclusion pattern when globbing #25
Comments
Or even |
I was just about to ask this question myself. Then I saw this. Hopefully, this is something that can be added to make minimatch and by extension gulp easier to use going forward. |
+1 |
+1 |
You can do explicit ignores with glob now, but this is not (and likely won't ever be) supported in minimatch.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to exclude a directory (and its files) from a glob, I need to write out the pattern like this:
Just using this:
would copy over the directory, but will not contain any files. While using this:
would copy over
_tmp
and its files.Is there any way to simplify this pattern? It seems like just using
'!app/_tmp/**'
should be sufficient to exclude the directory entirely.(Referencing gulpjs/gulp#165)
The text was updated successfully, but these errors were encountered: