1import { defineConfig } from "vite";2import { viteSingleFile } from "vite-plugin-singlefile";34export default defineConfig({5 plugins: [viteSingleFile()],6 build: {7 outDir: "dist",8 // Wrangler imports this file while watching. Keep the previous artifact in9 // place until Vite overwrites it so a UI rebuild cannot wedge the Worker.10 emptyOutDir: false,11 cssMinify: false,12 rollupOptions: {13 input: "mcp-app.html",14 },15 },16});