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.
Was this page helpful?