Update codesample for Alpine README (#8689)
Co-authored-by: HiDeoo <HiDeoo@users.noreply.github.com> Co-authored-by: Genteure <Genteure@users.noreply.github.com> Co-authored-by: Bryce Russell <brycetrussell@gmail.com> Co-authored-by: Reuben Tier <TheOtterlord@users.noreply.github.com> Co-authored-by: Hippo <hippotastic@users.noreply.github.com>
This commit is contained in:
parent
f5c617e3a3
commit
e9b77cbf19
1 changed files with 10 additions and 9 deletions
|
@ -43,15 +43,16 @@ npm install alpinejs @types/alpinejs
|
|||
|
||||
Then, apply this integration to your `astro.config.*` file using the `integrations` property:
|
||||
|
||||
```js ins={3} "alpine()"
|
||||
// astro.config.mjs
|
||||
import { defineConfig } from 'astro/config';
|
||||
import alpine from '@astrojs/alpinejs';
|
||||
|
||||
export default defineConfig({
|
||||
// ...
|
||||
integrations: [alpine()],
|
||||
});
|
||||
```diff lang="js" "alpine()"
|
||||
// astro.config.mjs
|
||||
import { defineConfig } from 'astro/config';
|
||||
+ import alpine from '@astrojs/alpinejs';
|
||||
|
||||
export default defineConfig({
|
||||
// ...
|
||||
integrations: [alpine()],
|
||||
// ^^^^^^^^
|
||||
});
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
Loading…
Reference in a new issue