Skip to content

Commit

Permalink
doc: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Apr 12, 2024
1 parent 993a376 commit 666326d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ If you prefer a config based approach, you can load scripts globally by defining
export default defineNuxtConfig({
scripts: {
globals: [
'https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js',
'https://example.com/script.js',
{
assetStrategy: 'bundle'
}
Expand All @@ -106,10 +106,10 @@ You can opt-in to have your scripts bundled by using the `assetStrategy` option.
analyzed at build time, you must define it statically.

```ts
useScript('https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js', {
useScript('https://example.com/script.js', {
assetStrategy: 'bundle'
})
// js-confetti.browser.js will be downloaded and bundled with your app as a static asset
// script.js will be downloaded and bundled with your app as a static asset
```

### Overriding Scripts
Expand Down

0 comments on commit 666326d

Please sign in to comment.