import { defineConfig } from "vite";
export default defineConfig({
  base: "/static/",
  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",
  },
});
