Creating custom theme breaks Vite
I followed documentation on: https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
Everything works fine after running
npm run build
, however npm run dev
is no longer building assets and I get html only page.
It seems like ->viteTheme('resources/css/filament/admin/theme.css')
is causing this issue.
Maybe anyone had similar issue? Running laravel 11 with sail.5 Replies
what is the error?
npm run dev
is working and running, but assets are not built.
The only error I can see is in the browser: Failed to load resource: net::ERR_CONNECTION_REFUSED
on theme.cssvite config sounds good to me..
are you able to access this on the browser?
your-url:5173/resources/css/filament/admin/theme.css
@Fireflies does it work?I will try to test it and give you an answer later today