Skip to content

Commit

Permalink
Fix paths in index.html and update base configuration in vite.config.…
Browse files Browse the repository at this point in the history
…ts for relative asset loading
  • Loading branch information
VincentLoy committed Dec 29, 2024
1 parent c407cac commit 8b81617
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
]
}
</script>
<script type="module" crossorigin src="/assets/main.min.js"></script>
<link rel="stylesheet" crossorigin href="/assets/main.min.css">
<script type="module" crossorigin src="./assets/main.min.js"></script>
<link rel="stylesheet" crossorigin href="./assets/main.min.css">
</head>
<body class="bg-slate-900 p-0 font-sans text-white" id="top">
<header class="bg-gradient-to-br from-indigo-600 to-violet-600 text-white pt-40 pb-20">
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const umdConfig = defineConfig({
// Configuration pour la documentation
const docsConfig = defineConfig({
root: "docs/src",
base: "./",
publicDir: resolve(__dirname, "docs/src/public"),
build: {
outDir: "../dist",
Expand Down

0 comments on commit 8b81617

Please sign in to comment.