Skip to content

Commit beded11

Browse files
committed
rewrite build script
1 parent 44d7ebb commit beded11

File tree

4 files changed

+20
-43
lines changed

4 files changed

+20
-43
lines changed

index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/.github/workflows/deploy.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Neofound</title>
8+
</head>
9+
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="./main.jsx"></script>
13+
</body>
14+
15+
</html>

vite.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import react from "@vitejs/plugin-react";
33

44
// Deployed on root at neofound.org, so base = "/"
55
export default defineConfig({
6-
plugins: [react()],
7-
base: "/"
6+
plugins: [react()],
7+
root: "src",
8+
build: {
9+
outDir: "../dist",
10+
},
811
});

0 commit comments

Comments
 (0)