I want to use a hashed version of my SVG sprite file in production for cache invalidation.
We are using the webpack-assets-plugin to be able to map an asset name to his hashed name after build. It works fine for all assets except the SVG sprite file. It seems like the plugin does the replacement of the filename with a hash to soon.
Here is a screenshot of what happens:
You can see CSS and JS assets have their original names mapped to the built name with hash. In case of the SVG sprite file, it has the hash in the original name. Is there any way to get this fixed ?
I want to use a hashed version of my SVG sprite file in production for cache invalidation.
We are using the
webpack-assets-plugin
to be able to map an asset name to his hashed name after build. It works fine for all assets except the SVG sprite file. It seems like the plugin does the replacement of the filename with a hash to soon.Here is a screenshot of what happens:
You can see CSS and JS assets have their original names mapped to the built name with hash. In case of the SVG sprite file, it has the hash in the original name. Is there any way to get this fixed ?
Thanks !