How are you adding the images? Also be sure to add it to your javascript if you are using blade
https://laravel.com/docs/10.x/vite#blade-processing-static-assets
Hi everyone. Tailwind CSS, Laravel, Vite Question.
I want to use background images in tailwind CSS. So what I'm supposed to do is define this in my tailwind config and I've done that correctly.
The issue is that when working locally (running vite) the url I've specified for my image is going to resolve to the port that vite is using(5173) - Something that will look like this http://127.0.0.1:5173/images/landing.jpg.
Obviously that's going to result to a 404.
When I build everything is okay and my image is displayed correctly.
But I can't keep on building every time I make small CSS changes. Would appreciate any help I can get on this.
Please or to participate in this conversation.