shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 184 forks source link

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

Closed alex996 closed 4 years ago

alex996 commented 4 years ago

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 commented 4 years ago

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