Skip to content

Commit cdf9bf4

Browse files
authored
[4.x] Vite 5 (#1418)
* Use default refresh paths * Update version requirement * Remove import
1 parent d24d41c commit cdf9bf4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Console/InstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ protected function installInertiaStack()
354354
'@inertiajs/vue3' => '^1.0.0',
355355
'@tailwindcss/forms' => '^0.5.2',
356356
'@tailwindcss/typography' => '^0.5.2',
357-
'@vitejs/plugin-vue' => '^4.0.0',
357+
'@vitejs/plugin-vue' => '^4.5.0',
358358
'autoprefixer' => '^10.4.7',
359359
'postcss' => '^8.4.14',
360360
'tailwindcss' => '^3.1.0',

stubs/livewire/vite.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'vite';
2-
import laravel, { refreshPaths } from 'laravel-vite-plugin';
2+
import laravel from 'laravel-vite-plugin';
33

44
export default defineConfig({
55
plugins: [
@@ -8,10 +8,7 @@ export default defineConfig({
88
'resources/css/app.css',
99
'resources/js/app.js',
1010
],
11-
refresh: [
12-
...refreshPaths,
13-
'app/Livewire/**',
14-
],
11+
refresh: true,
1512
}),
1613
],
1714
});

0 commit comments

Comments
 (0)