Skip to content

Commit 9e3181b

Browse files
committed
Move index file to src/demo
1 parent 9b435ab commit 9e3181b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.html renamed to src/demo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</head>
88
<body style="max-width: 600px; margin: 0 auto">
99
<div id="root"></div>
10-
<script type="module" src="/src/demo/main.tsx"></script>
10+
<script type="module" src="main.tsx"></script>
1111
</body>
1212
</html>

vite.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import react from "@vitejs/plugin-react";
33

44
export default defineConfig({
55
plugins: [react()],
6+
root: "src/demo",
67
test: {
8+
root: ".",
79
environment: "jsdom",
810
globals: true,
911
setupFiles: ["./vitest-setup.js"],

0 commit comments

Comments
 (0)