Skip to content

Commit

Permalink
add livewire component paths to default refresh paths for livewire
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Jul 7, 2022
1 parent fd703f0 commit 6bde618
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stubs/livewire/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import laravel, { refreshPaths } from 'laravel-vite-plugin';

export default defineConfig({
plugins: [
Expand All @@ -8,7 +8,10 @@ export default defineConfig({
'resources/css/app.css',
'resources/js/app.js',
],
refresh: true,
refresh: [
...refreshPaths,
'app/Http/Livewire/**',
],
}),
],
});

0 comments on commit 6bde618

Please sign in to comment.