diff --git a/README.md b/README.md index 10e5fa8..b396085 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,10 @@ From now on, when a `.blade.php` or Livewire `.php` class is updated, the hot re [vite] livewire hot updated. ``` +> **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 blade option active) +> in order to make them work together, `blade` files in `**/livewire/**` should be excluded from blade hot reload. + ### Watching files for hot reload trigger by default `livewire()` plugin will trigger hot reload when a `.blade.php` file changes in `resources/views/**` folders or a `.php` file changes in `app/**/Livewire/**` folders. @@ -101,10 +105,6 @@ In some cases (i.e. when working on non-livewire elements), you'll want to full By adding an `VITE_LIVEWIRE_OPT_IN=true` entry in your `.env` file an opt-in checkbox will show on the bottom right corner of the webpage, allowing you to enable/disable livewire hot reload. If disabled: a full page reload will be triggered when blade files are changed. -> **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 blade option active) -> in order to make them work together, `blade` files in `**/livewire/**` should be excluded from blade hot reload. - ## Changelog Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. [Follow Us](https://twitter.com/FabioIvona) on Twitter for more updates about this package. diff --git a/package.json b/package.json index ce6c4bf..3d4088e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@defstudio/vite-livewire-plugin", - "version": "0.1.13", + "version": "0.1.14", "author": { "name": "Fabio Ivona" },