Skip to content

Commit e1bba4b

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

File tree

2 files changed

+9
-1
lines changed

2 files changed

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

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

44
export default defineConfig({
55
plugins: [react()],
6+
build: {
7+
rollupOptions: {
8+
input: {
9+
main: "src/demo/index.html",
10+
},
11+
},
12+
},
13+
root: "src/demo",
614
test: {
715
environment: "jsdom",
816
globals: true,

0 commit comments

Comments
 (0)