How to load images correctly ? #343
-
Hello, How to load images on php file and scss file ? I used the function in a previous question, but it's not very ok :
How to load images with resources folder ? I use Finally, it's not working in npm run dev, here the result for the scss : Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Not sure. I try to put as many images in the HTML as possible. This might help: https://laravel.com/docs/9.x/vite#url-processing |
Beta Was this translation helpful? Give feedback.
-
I facing the same problem, my solution is to put my images directly in |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Solution (thanks to @Kingo11 and @vinkla) :
https://github.com/antoinegreuzard/wordplate-vite.config.js