import path from 'node:path'; import tailwindcss from '@tailwindcss/vite'; import { defineConfig } from 'vite-plus'; import htmlPartialsPlugin from './scripts/html-partials-plugin.ts'; export default defineConfig({ plugins: [tailwindcss(), htmlPartialsPlugin()], server: { port: 3000, open: false, }, build: { outDir: 'dist', sourcemap: true, // Why: Phase 1 has one HTML entrypoint; the other routes land with their files. rollupOptions: { input: { main: path.resolve(import.meta.dirname, 'index.html'), }, }, }, });