import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // Standalone print renderer bundle (print.html -> dist-print). No dev proxy: // the Pi serves the static files itself and drives it through window.renderBadge. export default defineConfig({ plugins: [react()], base: './', build: { outDir: 'dist-print', emptyOutDir: true, rollupOptions: { input: 'print.html' }, }, });