Skip to content

Commit f4da057

Browse files
committed
add main (no content) page
1 parent 6c811cd commit f4da057

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="root"></div>
11-
<script type="module" src="/src/pages/preview/main.tsx"></script>
11+
<script type="module" src="/main.tsx"></script>
1212
</body>
1313
</html>

main.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
8+
<div>NO Content</div>
9+
</React.StrictMode>,
10+
document.getElementById('root')
11+
);

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default defineConfig({
1818
build: {
1919
rollupOptions: {
2020
input: {
21+
main: 'index.html',
2122
preview: 'preview/index.html',
2223
admin: 'admin/index.html'
2324
}

0 commit comments

Comments
 (0)