Skip to content

Commit 27f5356

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

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-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

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

44
export default defineConfig({
55
plugins: [react()],
6+
root: "src/demo",
67
test: {
78
environment: "jsdom",
89
globals: true,

0 commit comments

Comments
 (0)