migrated the frontend file generation, changed folder structure
This commit is contained in:
20
frontend-plugin/vite.config.ts
Normal file
20
frontend-plugin/vite.config.ts
Normal 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",
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user