Minimal Theme vite error
I've followed all the steps in the minimal-theme tutorial to make it work with TailwindCSS v4 but ...
if i 'npm serve' it works on the main page but as soon as i switch to filement it crashes with:
my vite.config.filament.js
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
tailwindcss(),
],
});
js
"scripts": {
"build": "vite build && vite build --config vite.config.filament.js",
"dev": "concurrently "vite" "vite --config vite.config.filament.js""
},
```
5 Replies
@Zep Fietje
Thanks for tagging me, @Dennis Koch! (@Cem be sure to just email me when you want direct support. I'm not notified here on Discord unfortunately)
The issue you're describing is a known limitation. Would it work for you to separate the npm dev and build commands into two commands, one for Filament and one for your app, @Cem?
@Zep Fietje woops sorry forgot the mail thing
Yes (not sure how you'd do it but yes !) π
Try that
If I didn't make any typos, that should work
Else feel free to email me π
@Zep Fietje nope .. didn't work. I've emailed you π