Skip to content

Commit 0453c70

Browse files
authored
Update README.md
1 parent c166e1f commit 0453c70

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If you are [manually bundling Livewire and Alpine](https://livewire.laravel.com/
3333
```diff
3434
import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm';
3535
import Clipboard from '@ryangjchandler/alpine-clipboard'
36-
+ import "../../vendor/aerni/livewire-forms/resources/dist/js/livewire-forms";
36+
+ import "../../vendor/aerni/livewire-forms/resources/js/livewire-forms.js";
3737

3838
Alpine.plugin(Clipboard)
3939

@@ -61,12 +61,10 @@ Then, add the `{{ livewire:styles }}` and `{{ livewire:scriptConfig }}` tags to
6161
</html>
6262
```
6363

64-
At this point, you can safely remove the `livewire-forms.js` script from your form views, as it is now included in your bundle:
64+
Don't forget to remove the `@formAssets` directive from your form views, as the styles and script are now included in your bundle:
6565

6666
```diff
67-
- @assets
68-
- <script type="module" src="/vendor/livewire-forms/js/livewire-forms.js"></script>
69-
- @endassets
67+
- @formAssets
7068
```
7169

7270
## Commands

0 commit comments

Comments
 (0)