Skip to content

Commit 3a6d7c0

Browse files
hanspagelhwkr
andauthored
feat: use cdn script (#184)
* feat: use cdn script * Always render preview * chore: replace @scalar/api-reference with @scalar/types * chore: remove @scalar/api-reference (again) * fix: spec doesn’t update --------- Co-authored-by: Brynn Hawker <[email protected]>
1 parent 981ab34 commit 3a6d7c0

File tree

6 files changed

+105
-2439
lines changed

6 files changed

+105
-2439
lines changed

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
data-spa="auto"
2020
data-site="MDCOXGFH"
2121
defer></script>
22+
<link
23+
rel="preload"
24+
href="https://cdn.jsdelivr.net/npm/@scalar/api-reference"
25+
as="script" />
2226
</head>
2327
<body>
2428
<div

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
},
1919
"dependencies": {
2020
"@headlessui/vue": "^1.7.17",
21-
"@scalar/api-reference": "^1.25.48",
2221
"@scalar/openapi-parser": "^0.8.7",
2322
"@scalar/themes": "^0.9.41",
23+
"@scalar/types": "^0.0.17",
2424
"@vueuse/core": "^10.7.2",
2525
"drizzle-orm": "^0.32.2",
2626
"monaco-editor": "^0.50.0",
2727
"nanoid": "^5.0.4",
2828
"oh-vue-icons": "1.0.0-rc3",
2929
"vue": "3.4.36",
30+
"vue-plugin-load-script": "^2.1.1",
3031
"vue-router": "^4.4.3",
3132
"vue-sonner": "^1.1.4",
3233
"yaml": "^2.5.0"

0 commit comments

Comments
 (0)