import tailwindcss from "@tailwindcss/vite"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // `base: "./"` (relative asset URLs) is the plugin-ui-surface contract: the SPA is mounted under // `/plugin-ui/playnite/` behind the console proxy. 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: 5601 }, });