Is there a way to generate SVG in the production build #9676
-
I want to be able to have a Vue component to generate SVG using JavaScript and include it with parameters in several pages I'd like to have it embedded in the render HTML of the file generated a build time to reduce loading time in the browser |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You could maybe generate it in |
Beta Was this translation helpful? Give feedback.
-
Could you share a small repo of what you are trying to achieve? |
Beta Was this translation helpful? Give feedback.
-
I found a way around my problem using rough.js generator. With that I am able to draw my SVG and have it in the generated HTML file. Thanks everyone for helping |
Beta Was this translation helpful? Give feedback.
I found a way around my problem using rough.js generator. With that I am able to draw my SVG and have it in the generated HTML file.
See the result on this branch https://github.com/lidonis/nuxt-ssg-svg/tree/rough_generator
Thanks everyone for helping