© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
Wessire

How to include Vite compiled JS into admin panel?

I am creating a custom field, that needs to use a JS library. I am importing that library and initializing it from npm modules.

So afaik, I need to make sure this is built by Vite, i.e. I could add it app.js, but it seems that the layout for the default admin panel does not include app.js.

How can I go about including a compiled JS file from Vite into my Filament admin pages?
Solution
Alright. Looks like I solved it following these steps:
Jump to solution
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

Admin Panel
FilamentFFilament / ❓┊help
2y ago
User & Admin panel
FilamentFFilament / ❓┊help
3y ago
Admin panel resources
FilamentFFilament / ❓┊help
3y ago