Skip to content
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

[Webpack 5] Incorrect mappings with copy-webpack-plugin #228

Closed
alex996 opened this issue Nov 19, 2020 · 1 comment
Closed

[Webpack 5] Incorrect mappings with copy-webpack-plugin #228

alex996 opened this issue Nov 19, 2020 · 1 comment

Comments

@alex996
Copy link

alex996 commented Nov 19, 2020

Use Case

Copying static asset files (e.g. images) using copy-webpack-plugin. Not sure if this use case is supported (i.e. whether it's a bug report or a feature request), but this package does produce the mappings that are sadly incorrect.

Expected Behavior

The key in manifest.json should match the original file name (and path), and not include the resulting contenthash. For example, given an image myimage.99217f7d9cb04497c0c92f3c0d0f82f1.png the key should be myimage.png.

Actual Behavior

The key is incorrect in that it also includes the contenthash making the mapping unusable and impractical.

Additional Information

Please see the full details in the readme of the repo.

@shellscape
Copy link
Owner

Same issue as #210, #208, and #167. (Please do remember to search before opening new issues)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants