diff --git a/package.json b/package.json index b3c09dc..c7bcfcb 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/demo/index.html b/src/demo/index.html index feaf27c..af65a10 100644 --- a/src/demo/index.html +++ b/src/demo/index.html @@ -2,9 +2,9 @@ - + - Vite + Svelte + Function Graph Overview - Demo
diff --git a/src/demo/vite.config.js b/src/demo/vite.config.js index 5ac8ecf..602229d 100644 --- a/src/demo/vite.config.js +++ b/src/demo/vite.config.js @@ -4,4 +4,7 @@ import { svelte } from "@sveltejs/vite-plugin-svelte"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [svelte()], + build: { + copyPublicDir: true, + }, });