-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
exclude using patterns #654
Comments
I was going to just say "use your shell" but this is actually tricky and messy to do:
|
in 3.30.0 you can do:
|
sorry but actually I use browserify thru gulp-browserify, ie. thru it's programmatic api, // this works
browserify({
standalone: "mylib",
exclude: "../../vendor/jquery"
})
// this doesn't
browserify({
standalone: "mylib",
exclude: "../../vendor/*"
}) looking at your commits I think you implemented it for the command line argument only. // this works
browserify({
standalone: "mylib",
exclude: expandGlob("../../vendor/*").andRemoveExtensions()
}) |
You can |
sure, just thought it could be nicer if exclude accepted something else, a regex or a filter function, but KISS 👍 thanks! |
this is a feature request,
I want to exclude from my bundle all files in /vendor or /external
so instead of indicating the files individually I would like to specify a pattern, eg: "/vendor/*"
The text was updated successfully, but these errors were encountered: