-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Ignore file that does not exist #126
Comments
As far as I remember, webpack 1.x version of copy-webpack-plugin ignored non-existing files, didn't it? Anyways, having a flag for such a behavior would be great. |
@hellivan i'm using 2.x so i'm not aware of that. Indeed, a flag to not throw errors and stop the bundling would be really nice! |
@playma256 If you use the
|
I don't suppose it's possible to do this when you're not using globs?
I'd like to just get a warning when a specific "from" file doesn't exist, not break the build. |
I'm looking into this as a workaround for https://github.com/webpack/webpack/issues/5360 |
@michael-ciniawsky what do you think about this option? |
hmm... imho it's simply an |
would be nice to have an option like this or just another |
Im having the same issue as @zanettin , would love the option to convert from error to warning |
@derekdon Under the hood {
context: path.resolve(__dirname, "a", "b"),
from: "@(c)",
to: "c"
} If you need copy multiple files, simply write the glob expression for sure. |
I know this is a bit old, but came across this same issue recently and it seems the plugin has been updated with a |
This really useful..thanx |
Hello, is there a way to ignore the files that does not exist instead of throwing errors?
The text was updated successfully, but these errors were encountered: