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:
+6
-5
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user