You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation on SVG variant needs Vite integration #33
As far as I'm aware, the frontend world is moving towards Vite ecosystem.
Thus, the documentation needs an update to reference SVG+Vite+<Framework> integrations such as vite-svg-loader (confusingly, despite the name it is specifically for Vue.js) and vite-plugin-svgr (for React).
Actually there is already a PR which describes a workaround for vite-svg-loader: jpkleemans/vite-svg-loader#120 and I think it should be included here too.
By default, SVGO does not preserve the viewBox attribute for optimization reasons. This can cause issues when you need to resize your SVG with CSS. You can pass options to svgLoader() to disable the removal of the viewBox attribute.
Activity
ratijas commentedon Dec 11, 2025
Actually there is already a PR which describes a workaround for
vite-svg-loader: jpkleemans/vite-svg-loader#120 and I think it should be included here too.