Skip to content
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

nuxt3 can use? #200

Open
delete-rain opened this issue Nov 24, 2022 · 1 comment
Open

nuxt3 can use? #200

delete-rain opened this issue Nov 24, 2022 · 1 comment

Comments

@delete-rain
Copy link

next3 can use vue-svg-loader ?
How to do ?

@aleavikraman
Copy link

I got it sort of working based on some other solutions people had.

in your nuxt.js.config add
import svgLoader from "vite-svg-loader"

vite: { plugins: [ svgLoader({ /* ... */ }) ] },

Then in your component you just import the svg

import doodleSVG from "../public/orange-dog.svg";

and add it to your template
<doodleSVG />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants