Closed Arsadh closed 4 years ago
Do you have some more information? Which version of the plugin are you using, can you share your SVGs or set up a minimal reproducible test case for me?
@cascornelissen , here i attached one svg which I used in sprite and my chrome version is Google Chrome is up to date Version 84.0.4147.89 (Official Build) (64-bit)
and laravel mix version I used is "laravel-mix": "^5.0.1"
.
Svg's are visible only after they are cached in browser
Thanks for providing the SVG, there doesn't seem to be a problem with that. I need more info:
laravel-mix
, if so what does npm ls webpack
give?The following comment, combined with the simple SVG you've provided makes me pretty sure this is not an issue with the plugin.
Svg's are visible only after they are cached in browser
This sounds like the spritemap gets cached by the browser, does the file have a hash in the filename (e.g. spritemap.ba231h4.svg
) or is it just spritemap.svg
? In case of the latter please use the output.filename
and set it to a value like spritemap.[contenthash].svg
.
@cascornelissen , Thanks for your concern, this issue occurs because of the latest Chrome update.
Reference issue
- https://bugs.chromium.org/p/chromium/issues/detail?id=1107442
@Arsadh, thanks for diving deeper into this, that's a really interesting bug... The fix with the content hash won't solve the issue either in that case and I think the only way to fix this is with the Chrome team. Would you mind if we close this issue?
No, I don't mind @cascornelissen
@cascornelissen , Svg sprite are not rendered properly in chrome browser