© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
NikSpyratos

Vite assets / npm run build - loads new theme once, then only loads vendor theme

Posted this on GH discussions a few days ago, no responses there so I figured I'd try my luck here for some more visibility.

This issue feels super weird and I'm not sure how to investigate it further or if I should file an actual issue report.

I've followed the appearance customisation instructions. On my local it works fine. On my production instance, on a fresh asset build, Filament will correctly use the built asset
filament.css
filament.css
for the theme once, but subsequent loads just uses the vendor Filament CSS.

Viewing page source shows this link change. I've even added logging in the service provider to log
Filament::getThemeLink()
Filament::getThemeLink()
and on each page load (even when it's defaulting to the vendor one in the page source) and it's always the built asset.

I'm using Octane if that matters at all?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

npm run build fails with custom theme created
FilamentFFilament / ❓┊help
6mo ago
Build Filament assets using vite
FilamentFFilament / ❓┊help
12mo ago
Error npm run build
FilamentFFilament / ❓┊help
11mo ago
npm run build creates public/build/assets/app-XXX.css but page loads css/filament/filament/app.css
FilamentFFilament / ❓┊help
6mo ago