import tailwindcss from "@tailwindcss/vite"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // `base: "./"` (relative asset URLs) + hash routing is the plugin-ui-surface ยง6 contract: the SPA is // mounted under `/plugin-ui/rom-manager/` behind the console proxy. Tailwind v4 + @unom/ui give it the // same look as the console. Built into `../dist/ui`, which `servePluginUi`'s staticDir points at. export default defineConfig({ base: "./", plugins: [react(), tailwindcss()], build: { outDir: "../dist/ui", emptyOutDir: true, }, server: { port: 5599 }, });