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
Copy file name to clipboardExpand all lines: README.md
+42-22Lines changed: 42 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -27,44 +27,43 @@ Plus Nuxt goodies:
27
27
- 🕵️ Privacy Features - Trigger scripts loading on cookie consent, honour DoNotTrack.
28
28
- 🪵 DevTools integration - see all your loaded scripts with function logs
29
29
30
-
## Installation
30
+
## Quick Start
31
31
32
-
1. Install `@nuxt/scripts` dependency to your project:
32
+
To get started, simply run:
33
33
34
34
```bash
35
-
pnpm add -D @nuxt/scripts
36
-
#
37
-
yarn add -D @nuxt/scripts
38
-
#
39
-
npm install -D @nuxt/scripts
35
+
npx nuxi@latest module add @nuxt/scripts
40
36
```
41
37
42
-
2. Add it to your `modules` section in your `nuxt.config`:
38
+
To start using Nuxt Scripts, you can use the [useScript](https://unhead.unjs.io/usage/composables/use-script) composable to load your third-party scripts.
39
+
40
+
### Confetti Example
41
+
42
+
If you want to get a feel for how the module works, you can load the `js-confetti` library:
0 commit comments