build: configure multi-entry Vite build for reader

- Add reader.ts as second entry point alongside main.ts in vite.config.ts
- Set assetsDir to empty string to output chunks to /static/ root
- Remove reader-shell import from main.ts (loaded separately via reader.js)
- Update .gitignore to exclude web/static/assets/*.js chunks
- Update Bruno environment with new test IDs
This commit is contained in:
2026-04-04 18:17:03 -04:00
parent 779f34d4f5
commit 99d6c9a5d1
4 changed files with 9 additions and 8 deletions
+6 -5
View File
@@ -3,13 +3,14 @@ export default defineConfig({
build: {
outDir: "web/static",
emptyOutDir: false,
assetsDir: "",
rollupOptions: {
input: "web/src/main.ts",
input: {
main: "web/src/main.ts",
reader: "web/src/reader/reader.ts",
},
output: {
entryFileNames: "main.js",
manualChunks: () => {
return "everything";
},
entryFileNames: "[name].js",
},
},
target: "es2020",