{"repo":"defstudio/vite-livewire-plugin","free":true,"listed":false,"github":"https://github.com/defstudio/vite-livewire-plugin","clone":"git clone https://github.com/defstudio/vite-livewire-plugin.git","description":"Laravel Vite handler for Livewire components","language":"TypeScript","stars":295,"topics":["hacktoberfest","hot-reload","laravel","livewire","vite"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Vite Livewire Plugin Vite has become Laravel's default frontend build tool. This plugin (made by def:studio) configures Vite for use with a Livewire setup, allowing components hot reload without losing their state when their blade or class files change. Demo video available below in this page Installation Prior to install, read carefully our documentation at https://docs.defstudio.it/vite-livewire-plugin Usage Livewire hot reload can be enabled by adding the livewire() plugin to the vite.config.js file: and add the livewire hot reload manager in your app.js file: After the Vite server is started, you should see the init message on your browser console: From now on, when a .blade.php or Livewire .php class is updated, the hot reload will trigger a refresh for all Livewire components in page (and the app.css file as well): Warning This Vite plugin, as Livewire needs to persist in page, is not fully compatible with other plugins that full refresh the page when a .blade.php file changes (i.e. laravel/vite-plugin with refresh option active) in order to make them work together, blade files in /livewire/ should be excluded from blade hot reload. For Laravel Vite plugin, this config would solve the issue: Usage & Documentation An extensive documentation is available at https://docs.defstudio.it/vite-livewire-plugin Changelog Please see CHANGELOG for more information on what has changed recently. Follow Us on Twitter for more updates about this package. Contributing Please see CONTRIB","default_branch":null,"files":null,"tree":[],"storefront":"/r/defstudio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/defstudio/vite-livewire-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}