mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
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:
@@ -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.",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user