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.
^3.0.0-rc.0
^5.6.0
(latest to date)v14.13.1
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 resultingcontenthash
. For example, given an imagemyimage.99217f7d9cb04497c0c92f3c0d0f82f1.png
the key should bemyimage.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.