CSS not loading on PC and mobile device while developing Laravel with Vite on a local network
I’m developing a Laravel application using Vite for the frontend, and I’m trying to test the site both on my PC and mobile phone, which are connected to the same Wi-Fi network.
CSS not loading on PC and mobile device while developing Laravel with Vite on a local network
I’m developing a Laravel application using Vite for the frontend, and I’m trying to test the site both on my PC and mobile phone, which are connected to the same Wi-Fi network.
CSS not loading on PC and mobile device while developing Laravel with Vite on a local network
I’m developing a Laravel application using Vite for the frontend, and I’m trying to test the site both on my PC and mobile phone, which are connected to the same Wi-Fi network.
CSS not loading on PC and mobile device while developing Laravel with Vite on a local network
I’m developing a Laravel application using Vite for the frontend, and I’m trying to test the site both on my PC and mobile phone, which are connected to the same Wi-Fi network.
CSS not loading on PC and mobile device while developing Laravel with Vite on a local network
I’m developing a Laravel application using Vite for the frontend, and I’m trying to test the site both on my PC and mobile phone, which are connected to the same Wi-Fi network.
Relative path or subdirectory with Laravel 11 vite
In Laravel 11 with vite I am loading a font in my .scss file:
Set Vite host path to match Sail site URL
In my Laravel project I am outputting CSS/JS like so:
I have to use “npm run dev” even after “npm run build” in my laravel app
In my laravel app, i ran “npm run build” and the build was successful but when opened the app i got:
Vite npm run dev on laravel rtying to access resoures folder
i have simple docker-compose file
MacOS + Sail (Docker) + Vite = Browser can’t connect over port 5173
The Problem
Vite appears to be running, according shell in Terminal, but does not update the page, recognize CSS changes and is not accessible over port 5173 on localhost.