Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 35af0fd

Browse files
Merge pull request #37 from marcorieser/docs-for-styles-scripts
Add notice about caching for styles and scripts to readme
2 parents 4ba576a + 2c8ecb4 commit 35af0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ composer require jonassiewertsen/statamic-livewire
2525

2626
## Livewire scripts and styles
2727

28-
Livewire injects its styles and scripts automatically into the page. However, if you want to include them [manually](https://livewire.laravel.com/docs/installation#manually-including-livewires-frontend-assets), you can do so by using the respective tags `{{ livewire:styles }}` and`{{ livewire:scripts }}`.
28+
Livewire injects its styles and scripts automatically into the page. However, this does not work if caching is enabled (`half`/`full`). In that case, you want to include them [manually](https://livewire.laravel.com/docs/installation#manually-including-livewires-frontend-assets), by using the respective tags `{{ livewire:styles }}` and`{{ livewire:scripts }}`.
2929

3030
In case you need to include some custom Alpine plugins, you can [bundle the assets yourself](https://livewire.laravel.com/docs/installation#manually-bundling-livewire-and-alpine) and disable the automatic injection by using the `{{ livewire:scriptConfig }}` tag. Do not forget to include the `{{ livewire:styles }}` tag as well.
3131

0 commit comments

Comments
 (0)