You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/upgrade.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,12 @@ sort: 4
6
6
## Upgrading from v4 to v5
7
7
8
8
### Alpine upgrade
9
+
9
10
The biggest breaking change in version 5 is changing support from alpine.js v2 to v3. This should require only minimal effort however in terms of updating the package.
10
11
Based on the [upgrade guide](https://alpinejs.dev/upgrade-guide) from Alpine.js, here is what you should need to do if you are importing Alpine from NPM:
11
12
12
13
```js
13
-
importAlpinefrom'alpinejs';
14
+
importAlpinefrom"alpinejs";
14
15
15
16
window.Alpine= Alpine;
16
17
@@ -20,10 +21,11 @@ Alpine.start();
20
21
This won't affect you if you are using the CDN scripts from the [configuration](https://github.com/rawilk/laravel-form-components/blob/master/config/form-components.php).
21
22
22
23
### Additional stylesheet option
24
+
23
25
If you choose to import the compiled styles for this package into your own stylesheets, you can now import a minified stylesheet instead if you want to:
See [customizing css](/docs/laravel-form-components/v5/advanced-usage/customizing-css#option-2-override-only-portions-in-your-css) for more information.
0 commit comments