From 666326df730e696e1387db00ea25f2ddd7bf6ab1 Mon Sep 17 00:00:00 2001 From: harlan Date: Fri, 12 Apr 2024 15:48:45 +1000 Subject: [PATCH] doc: clean up --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f101652..4e375bd2 100644 --- a/README.md +++ b/README.md @@ -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' } @@ -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