© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
24 replies
ddoddsr

npm run build error, run dev not working

Followed the directions I made a new theme
php artisan make:filament-theme admin
php artisan make:filament-theme admin

Followed these steps
  ⇂ First, add a new item to the `input` array of `vite.config.js`: `resources/css/filament/admin/theme.css`  
  ⇂ Next, register the theme in the admin panel provider using `->viteTheme('resources/css/filament/admin/theme.css')`  
  ⇂ Finally, run `npm run build` to compile the theme  
  ⇂ First, add a new item to the `input` array of `vite.config.js`: `resources/css/filament/admin/theme.css`  
  ⇂ Next, register the theme in the admin panel provider using `->viteTheme('resources/css/filament/admin/theme.css')`  
  ⇂ Finally, run `npm run build` to compile the theme  

Run build does include my custom page and the tailwind class take effect! great.
But I get a warning that does not make sense:
warn - The `content` option in your Tailwind CSS configuration is missing or empty.
warn - Configure your content sources or your generated CSS will be missing styles.
warn - https://tailwindcss.com/docs/content-configuration
warn - The `content` option in your Tailwind CSS configuration is missing or empty.
warn - Configure your content sources or your generated CSS will be missing styles.
warn - https://tailwindcss.com/docs/content-configuration

Also npm run dev does NOT effect my custom page changes
Gist of files https://gist.github.com/ddoddsr/f777762adb35c1908546ce98a1d1e3b5
Gist
Missing content warning and npm run dev does not process changes
Missing content warning and npm run dev does not process changes - postcss.config.js
Missing content warning and npm run dev does not process changes
Solution
Are you using an Adblocker?
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Error npm run build
FilamentFFilament / ❓┊help
11mo ago
npm install & npm run dev compiles with error
FilamentFFilament / ❓┊help
3y ago
ERR_MODULE_NOT_FOUND on npm run build
FilamentFFilament / ❓┊help
3y ago
npm run dev : SyntaxError: Unexpected token 'export'
FilamentFFilament / ❓┊help
3y ago