use relative path in build
Browse files- dist/index.html +3 -3
- vite.config.ts +1 -0
dist/index.html
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
<html lang="fr">
|
3 |
<head>
|
4 |
<meta charset="UTF-8"/>
|
5 |
-
<link rel="icon" type="image/svg+xml" href="
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
7 |
<meta name="color-scheme" content="dark"/>
|
8 |
<title>JVCGPT</title>
|
9 |
-
<script type="module" crossorigin src="
|
10 |
-
<link rel="stylesheet" crossorigin href="
|
11 |
</head>
|
12 |
<body>
|
13 |
<div id="app"></div>
|
|
|
2 |
<html lang="fr">
|
3 |
<head>
|
4 |
<meta charset="UTF-8"/>
|
5 |
+
<link rel="icon" type="image/svg+xml" href="./favicon.svg"/>
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
7 |
<meta name="color-scheme" content="dark"/>
|
8 |
<title>JVCGPT</title>
|
9 |
+
<script type="module" crossorigin src="./assets/index-D9GZL6lq.js"></script>
|
10 |
+
<link rel="stylesheet" crossorigin href="./assets/index-pFFRmuiD.css">
|
11 |
</head>
|
12 |
<body>
|
13 |
<div id="app"></div>
|
vite.config.ts
CHANGED
@@ -4,6 +4,7 @@ import preact from '@preact/preset-vite';
|
|
4 |
|
5 |
// https://vitejs.dev/config/
|
6 |
export default defineConfig({
|
|
|
7 |
plugins: [
|
8 |
// patchCssModules(),
|
9 |
preact({ // I had to disable HMR due to un Vite bug (@see https://github.com/privatenumber/vite-css-modules)
|
|
|
4 |
|
5 |
// https://vitejs.dev/config/
|
6 |
export default defineConfig({
|
7 |
+
base: "",
|
8 |
plugins: [
|
9 |
// patchCssModules(),
|
10 |
preact({ // I had to disable HMR due to un Vite bug (@see https://github.com/privatenumber/vite-css-modules)
|