diff --git a/stubs/default/vite.config.js b/stubs/default/vite.config.js index dd941926f..89f26f5db 100644 --- a/stubs/default/vite.config.js +++ b/stubs/default/vite.config.js @@ -3,9 +3,12 @@ import laravel from 'laravel-vite-plugin'; export default defineConfig({ plugins: [ - laravel([ - 'resources/css/app.css', - 'resources/js/app.js', - ]), + laravel({ + input: [ + 'resources/css/app.css', + 'resources/js/app.js', + ], + refresh: true, + }), ], }); diff --git a/stubs/inertia-react/vite.config.js b/stubs/inertia-react/vite.config.js index 18b1e3cd2..19f290861 100644 --- a/stubs/inertia-react/vite.config.js +++ b/stubs/inertia-react/vite.config.js @@ -6,6 +6,7 @@ export default defineConfig({ plugins: [ laravel({ input: 'resources/js/app.jsx', + refresh: true, }), react(), ], diff --git a/stubs/inertia-vue/vite.config.js b/stubs/inertia-vue/vite.config.js index 0976464a7..20de738fa 100644 --- a/stubs/inertia-vue/vite.config.js +++ b/stubs/inertia-vue/vite.config.js @@ -6,6 +6,7 @@ export default defineConfig({ plugins: [ laravel({ input: 'resources/js/app.js', + refresh: true, }), vue({ template: {