Skip to content

Commit 6dc4825

Browse files
authored
Add a base URL of the built demo (#16)
1 parent 383d680 commit 6dc4825

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import react from "@vitejs/plugin-react";
55
export default defineConfig({
66
plugins: [react()],
77
root: "src/demo",
8+
base: "/demo/",
89
build: {
910
outDir: join(import.meta.dirname, "docs/demo"),
11+
emptyOutDir: true,
1012
},
1113
test: {
1214
root: ".",

0 commit comments

Comments
 (0)