Skip to content

Commit 1c6a107

Browse files
authored
Merge pull request #11 from danielroe/module-installation
docs: use new `nuxi module add` command in installation
2 parents b378cfb + 8d79759 commit 1c6a107

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

README.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,8 @@ This module is really just about making it work with Nuxt 3 without the need to
2222

2323
## Quick Setup
2424

25-
1. Add `nuxt3-leaflet` dependency to your project
26-
2725
```bash
28-
# Using pnpm
29-
pnpm add -D nuxt3-leaflet
30-
31-
# Using yarn
32-
yarn add --dev nuxt3-leaflet
33-
34-
# Using npm
35-
npm install --save-dev nuxt3-leaflet
36-
```
37-
38-
2. Add `nuxt3-leaflet` to the `modules` section of `nuxt.config.ts`
39-
40-
```js
41-
export default defineNuxtConfig({
42-
modules: [
43-
'nuxt3-leaflet'
44-
]
45-
})
26+
npx nuxi@latest module add nuxt3-leaflet
4627
```
4728

4829
That's it! You can now use Leaflet in your Nuxt app ✨

0 commit comments

Comments
 (0)