- 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
21 lines
413 B
TypeScript
21 lines
413 B
TypeScript
import { defineConfig } from "vite";
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: "web/static",
|
|
emptyOutDir: false,
|
|
assetsDir: "",
|
|
rollupOptions: {
|
|
input: {
|
|
main: "web/src/main.ts",
|
|
reader: "web/src/reader/reader.ts",
|
|
},
|
|
output: {
|
|
entryFileNames: "[name].js",
|
|
},
|
|
},
|
|
target: "es2020",
|
|
sourcemap: true,
|
|
minify: "esbuild",
|
|
},
|
|
});
|