Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Jul 5, 2022
1 parent 80c8566 commit 35257ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@defstudio/vite-livewire-plugin",
"version": "0.1.13",
"version": "0.1.14",
"author": {
"name": "Fabio Ivona"
},
Expand Down

0 comments on commit 35257ed

Please sign in to comment.