Skip to content

Commit

Permalink
Build with the right base
Browse files Browse the repository at this point in the history
  • Loading branch information
tmr232 committed Sep 6, 2024
1 parent f965f25 commit 45ec639
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"clean": "rm -r ./dist",
"web": "bun run --cwd ./src/frontend/ vite",
"demo": "bun run --cwd ./src/demo/ vite",
"build-demo": "bun run --cwd ./src/demo/ vite build --outDir ../../dist/demo",
"build-demo": "bun run --cwd ./src/demo/ vite build --outDir ../../dist/demo --base '/function-graph-overview/'",
"format": "bun prettier . --write",
"lint": "bun format && bun run eslint"
},
Expand Down
4 changes: 2 additions & 2 deletions src/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Svelte</title>
<title>Function Graph Overview - Demo</title>
</head>
<body>
<div id="app"></div>
Expand Down
3 changes: 3 additions & 0 deletions src/demo/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
build: {
copyPublicDir: true,
},
});

0 comments on commit 45ec639

Please sign in to comment.