From 0bdf72247b3df7631e519025f5c84df47dcf5425 Mon Sep 17 00:00:00 2001
From: Azalea <22280294+hykilpikonna@users.noreply.github.com>
Date: Sat, 15 Mar 2025 03:11:09 -0400
Subject: [PATCH 1/2] Replace unpkg with jsdelivr for reliability
Unpkg was down for 12 hours and is still down right now (https://github.com/unpkg/unpkg/issues/412). This is not acceptable for a production CDN.
---
README.md | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index efa2241..a030b84 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@
`petite-vue` can be used without a build step. Simply load it from a CDN:
```html
-
+
@@ -38,7 +38,7 @@
If you don't want the auto init, remove the `init` attribute and move the scripts to end of ``:
```html
-
+
@@ -48,7 +48,7 @@ Or, use the ES module build:
```html
```
@@ -57,9 +57,9 @@ Or, use the ES module build:
The short CDN URL is meant for prototyping. For production usage, use a fully resolved CDN URL to avoid resolving and redirect cost:
-- Global build: `https://unpkg.com/petite-vue@0.2.2/dist/petite-vue.iife.js`
+- Global build: `https://cdn.jsdelivr.net/npm/petite-vue@0.2.2/dist/petite-vue.iife.js`
- exposes `PetiteVue` global, supports auto init
-- ESM build: `https://unpkg.com/petite-vue@0.2.2/dist/petite-vue.es.js`
+- ESM build: `https://cdn.jsdelivr.net/npm/petite-vue@0.2.2/dist/petite-vue.es.js`
- Must be used with `
```