We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c811cd commit f4da057Copy full SHA for f4da057
index.html
@@ -8,6 +8,6 @@
8
</head>
9
<body>
10
<div id="root"></div>
11
- <script type="module" src="/src/pages/preview/main.tsx"></script>
+ <script type="module" src="/main.tsx"></script>
12
</body>
13
</html>
main.tsx
@@ -0,0 +1,11 @@
1
+import React from 'react';
2
+import { render } from 'react-dom';
3
+
4
+import '@/global.css';
5
6
+render(
7
+ <React.StrictMode>
+ <div>NO Content</div>
+ </React.StrictMode>,
+ document.getElementById('root')
+);
vite.config.ts
@@ -18,6 +18,7 @@ export default defineConfig({
18
build: {
19
rollupOptions: {
20
input: {
21
+ main: 'index.html',
22
preview: 'preview/index.html',
23
admin: 'admin/index.html'
24
}
0 commit comments