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

Commit 3c8fe2b

Browse files
rawilkactions-user
authored andcommitted
Prettified Code!
1 parent 4228bf8 commit 3c8fe2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/upgrade.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ sort: 4
66
## Upgrading from v4 to v5
77

88
### Alpine upgrade
9+
910
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.
1011
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:
1112

1213
```js
13-
import Alpine from 'alpinejs';
14+
import Alpine from "alpinejs";
1415

1516
window.Alpine = Alpine;
1617

@@ -20,10 +21,11 @@ Alpine.start();
2021
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).
2122

2223
### Additional stylesheet option
24+
2325
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:
2426

2527
```css
26-
@import '../../vendor/rawilk/laravel-form-components/resources/js/laravel-form-components-styles/dist/styles.min.css';
28+
@import "../../vendor/rawilk/laravel-form-components/resources/js/laravel-form-components-styles/dist/styles.min.css";
2729
```
2830

2931
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

Comments
 (0)