Skip to content

Commit 45ec639

Browse files
committed
Build with the right base
1 parent f965f25 commit 45ec639

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"clean": "rm -r ./dist",
4545
"web": "bun run --cwd ./src/frontend/ vite",
4646
"demo": "bun run --cwd ./src/demo/ vite",
47-
"build-demo": "bun run --cwd ./src/demo/ vite build --outDir ../../dist/demo",
47+
"build-demo": "bun run --cwd ./src/demo/ vite build --outDir ../../dist/demo --base '/function-graph-overview/'",
4848
"format": "bun prettier . --write",
4949
"lint": "bun format && bun run eslint"
5050
},

src/demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/png" href="/favicon.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + Svelte</title>
7+
<title>Function Graph Overview - Demo</title>
88
</head>
99
<body>
1010
<div id="app"></div>

src/demo/vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [svelte()],
7+
build: {
8+
copyPublicDir: true,
9+
},
710
});

0 commit comments

Comments
 (0)