migrated the frontend file generation, changed folder structure

This commit is contained in:
2026-05-06 20:06:47 +03:00
parent 12a64e9f2f
commit 76fe1c4294
23 changed files with 908 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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",
},
},
});