mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Vite will refresh the page when we change/save PHP code in app/**
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import laravel from 'laravel-vite-plugin'
|
||||
import laravel, {refreshPaths} 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,
|
||||
refresh: {
|
||||
paths: [
|
||||
...refreshPaths,
|
||||
'app/**/*.php'
|
||||
],
|
||||
},
|
||||
}),
|
||||
tailwindcss(),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user