made it output a single html file

This commit is contained in:
2026-05-14 18:36:45 -05:00
parent bd1b932805
commit f251c9e9f4
6 changed files with 17 additions and 9 deletions
+2
View File
@@ -4,6 +4,7 @@ import babel from "@rolldown/plugin-babel";
import tailwindcss from "@tailwindcss/vite";
import { fileURLToPath } from "node:url";
import { dirname, resolve } from "node:path";
import { viteSingleFile } from "vite-plugin-singlefile";
// https://vite.dev/config/
const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -13,6 +14,7 @@ export default defineConfig({
react(),
babel({ presets: [reactCompilerPreset()] }),
tailwindcss(),
viteSingleFile(),
],
build: {
rollupOptions: {