Skip to content

Commit 8b81617

Browse files
committed
Fix paths in index.html and update base configuration in vite.config.ts for relative asset loading
1 parent c407cac commit 8b81617

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
]
5252
}
5353
</script>
54-
<script type="module" crossorigin src="/assets/main.min.js"></script>
55-
<link rel="stylesheet" crossorigin href="/assets/main.min.css">
54+
<script type="module" crossorigin src="./assets/main.min.js"></script>
55+
<link rel="stylesheet" crossorigin href="./assets/main.min.css">
5656
</head>
5757
<body class="bg-slate-900 p-0 font-sans text-white" id="top">
5858
<header class="bg-gradient-to-br from-indigo-600 to-violet-600 text-white pt-40 pb-20">

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const umdConfig = defineConfig({
7070
// Configuration pour la documentation
7171
const docsConfig = defineConfig({
7272
root: "docs/src",
73+
base: "./",
7374
publicDir: resolve(__dirname, "docs/src/public"),
7475
build: {
7576
outDir: "../dist",

0 commit comments

Comments
 (0)