21 lines
502 B
TypeScript
21 lines
502 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { viteSingleFile } from "vite-plugin-singlefile";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), viteSingleFile()],
|
|
define: {
|
|
"process.env.NODE_ENV": JSON.stringify("production"),
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
minify: "esbuild",
|
|
sourcemap: false,
|
|
assetsInlineLimit: 100000000, // Inline all assets
|
|
rollupOptions: {
|
|
input: "./index.html",
|
|
},
|
|
},
|
|
});
|