Fireflies
Fireflies
FFilament
Created by Fireflies on 10/30/2024 in #❓┊help
Creating custom theme breaks Vite
I will try to test it and give you an answer later today
7 replies
FFilament
Created by Fireflies on 10/30/2024 in #❓┊help
Creating custom theme breaks Vite
npm run dev is working and running, but assets are not built. The only error I can see is in the browser: Failed to load resource: net::ERR_CONNECTION_REFUSED on theme.css
7 replies
FFilament
Created by Fireflies on 10/30/2024 in #❓┊help
Creating custom theme breaks Vite
vite.config.js

import { defineConfig } from 'vite'
import laravel, { refreshPaths } from 'laravel-vite-plugin'

export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/filament/admin/theme.css',
'resources/css/app.css',
'resources/js/app.js',
],
refresh: [
...refreshPaths,
'app/Filament/**',
'app/Forms/Components/**',
'app/Livewire/**',
'app/Infolists/Components/**',
'app/Providers/Filament/**',
'app/Tables/Columns/**',
],
}),
],
})
vite.config.js

import { defineConfig } from 'vite'
import laravel, { refreshPaths } from 'laravel-vite-plugin'

export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/filament/admin/theme.css',
'resources/css/app.css',
'resources/js/app.js',
],
refresh: [
...refreshPaths,
'app/Filament/**',
'app/Forms/Components/**',
'app/Livewire/**',
'app/Infolists/Components/**',
'app/Providers/Filament/**',
'app/Tables/Columns/**',
],
}),
],
})
7 replies