import { defineConfig } from "vite";
import { resolve } from "path";

const root = resolve(__dirname, "src");

export default defineConfig({
  root,
  build: {
    outDir: resolve(__dirname, "dist"),
    emptyOutDir: true,
    rollupOptions: {
      input: {
        main: resolve(root, "index.html"),
        "mwg-scores": resolve(root, "mwg-scores.html"),
      },
    },
  },
});
