-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVGs not rendered properly in SSR (nuxt.js) #98
Comments
Have you found a solution? If no, could you share those SVGs here? |
I am facing the same issue as well. In my production build style tags are getting stripped from the svg defs. Whereas development builds are working fine. |
@shivgarg5676 Did you find a solution? I passing through the same problem. :( |
I manually inlined the styles. |
It's an issue with SVGO svg/svgo#1077 If not and your svg is already optimized (which IMO it should be) you can set |
I have a few svgs that render perfectly when running nuxt.js in dev mode. They look like this:
When built with Nuxt using SSR, they render like this:
What are we doing wrong?
The text was updated successfully, but these errors were encountered: