JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.02k stars 273 forks source link

Hash not inserted properly #341

Open moimael opened 5 years ago

moimael commented 5 years ago

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 !

ozq commented 4 years ago

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

moimael commented 4 years ago

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