Merge pull request #17339 from nexxai/patch-1

[4.x] docs: clarify where in the `vite.config.js` the theme.css file should be added
This commit is contained in:
Dan Harrin
2025-08-18 10:55:35 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ php artisan make:filament-theme --pm=bun
This command generates a CSS file in the `resources/css/filament` directory.
Add the theme's CSS file to the input array in `vite.config.js`:
Add the theme's CSS file to the Laravel plugin's `input` array in `vite.config.js`:
```js
input: [
@@ -94,7 +94,7 @@ class MakeThemeCommand extends Command
$this->components->warn('Action is required to complete the theme setup:');
$this->components->bulletList([
"First, add a new item to the `input` array of `vite.config.js`: `resources/css/filament/{$this->panel->getId()}/theme.css`.",
"First, add a new item to the Laravel plugin's `input` array in `vite.config.js`: `resources/css/filament/{$this->panel->getId()}/theme.css`.",
"Next, register the theme in the {$this->panel->getId()} panel provider using `->viteTheme('resources/css/filament/{$this->panel->getId()}/theme.css')`",
"Finally, run `{$this->pm} run build` to compile the theme.",
]);