How to Load Background Images from the Public Directory in CSS with Vite in Laravel?

Hello,

I’m working on a Laravel project and using Vite for asset management. I have a situation where the logo image is stored in the resources folder, while the demo images are kept in the public folder. I want to set a background image in a CSS file located in resources, but the image itself is in the public folder.

How can I configure the CSS file to correctly load the background image from the public folder when using Vite?

Thanks for your help!