Commit 1dc524f
committed
Move index.html to public/ with custom Vite root
Configure Vite to use public/ as the project root, allowing index.html
to reside in the same directory as other static assets.
Changes:
- Move index.html from project root to public/
- Set vite.config.ts root: 'public'
- Disable publicDir since we're using public/ as root
- Update build.outDir to '../build' (relative to public/)
- Update test.setupFiles and test.include paths for Vitest
- Update index.html script src to '../src/index.tsx'
This configuration:
- Keeps index.html with static assets in public/
- Maintains src/ at project root
- Preserves all existing functionality
- All tests passing (61 tests)
- Build and lint verified working1 parent 08224d1 commit 1dc524f
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
0 commit comments