-
Notifications
You must be signed in to change notification settings - Fork 74
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
Error: Prevent writing to file that only differs in casing or query string from already written file. #136
Comments
Addendum: Even when the |
how did you resolve this? |
blah {
// @see https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types
test: imgTest,
type: 'asset/resource',
generator: { filename: '[file][query][contenthash]' }, // the hash worked,
}, |
@noahehall: Does this configuration work? |
yea the contenthash fixed the error: having both webpack5 asset modules and this plugin created a duplicate file, hence the error howver i couldn't get this plugin to obey webpacks [file] output template so i moved on [edit] if you check my repository 'uiproto' there is a PR talking about the error |
v14.15.4
7.5.4
5.x
2.2.0
Expected Behavior
webpack build should just run fine, without an error message because of duplicate file names.
Actual Behavior
webpack build fails with error, the files are generated.
Code
How Do We Reproduce?
Run the webpack build. Notice the error message.
The text was updated successfully, but these errors were encountered: