made it output a single html file
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user