-
I want to import SVG as a component and use vite-svg-loader plugin for this in Vite+Vue3. It works correctly module.exports = {
bundler: '@vuepress/vite',
bundlerConfig: {
viteOptions: {
plugins: [svgLoader()]
}
},
... I get error How can I use the plugin with Vuepress or is there another way to solve the SVG problem? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I should work. Please provide a reproduce repo. |
Beta Was this translation helpful? Give feedback.
-
You can achieve what you want by doing the following:
No loader needed! Output it using |
Beta Was this translation helpful? Give feedback.
-
I got a suggestion from @Mister-Hope that helped me: |
Beta Was this translation helpful? Give feedback.
I should work. Please provide a reproduce repo.