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:
|
Then, apply this integration to your `astro.config.*` file using the `integrations` property:
|
||||||
|
|
||||||
```js ins={3} "alpine()"
|
```diff lang="js" "alpine()"
|
||||||
// astro.config.mjs
|
// astro.config.mjs
|
||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
import alpine from '@astrojs/alpinejs';
|
+ import alpine from '@astrojs/alpinejs';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
// ...
|
// ...
|
||||||
integrations: [alpine()],
|
integrations: [alpine()],
|
||||||
});
|
// ^^^^^^^^
|
||||||
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
Loading…
Reference in a new issue