svg-sprite-loader icon indicating copy to clipboard operation
svg-sprite-loader copied to clipboard

Hash not inserted properly

Open moimael opened this issue 5 years ago • 2 comments

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:

Screenshot from 2019-04-16 10-38-28

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 !

moimael avatar Apr 16 '19 08:04 moimael

Same problem. @moimael, have you found the solution?

ozq avatar Mar 05 '20 06:03 ozq

@ozq unfortunately I don't remember, it's been a while ...

moimael avatar Mar 05 '20 14:03 moimael