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. |
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 |
|
I facing the same problem, my solution is to put my images directly in |
Solution (thanks to @Kingo11 and @vinkla) :
https://github.com/antoinegreuzard/wordplate-vite.config.js