how do you use this library with vite and react js? #467
Unanswered
yossularko
asked this question in
Q&A
Replies: 1 comment
-
Follow this guide here to add the plugin to your vite config and then you can use the directives in import statements: import image from "example.jpg?w=500&format=avif"
function App() {
return <img src={image}/>
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to use this library for vite react js?
Beta Was this translation helpful? Give feedback.
All reactions