We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b435ab commit e1bba4bCopy full SHA for e1bba4b
index.html renamed to src/demo/index.html
@@ -7,6 +7,6 @@
7
</head>
8
<body style="max-width: 600px; margin: 0 auto">
9
<div id="root"></div>
10
- <script type="module" src="/src/demo/main.tsx"></script>
+ <script type="module" src="main.tsx"></script>
11
</body>
12
</html>
vite.config.ts
@@ -3,6 +3,14 @@ import react from "@vitejs/plugin-react";
3
4
export default defineConfig({
5
plugins: [react()],
6
+ build: {
+ rollupOptions: {
+ input: {
+ main: "src/demo/index.html",
+ },
13
+ root: "src/demo",
14
test: {
15
environment: "jsdom",
16
globals: true,
0 commit comments