From 13c258ad9564b4124d8e320022aa682049bbace5 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Thu, 16 Oct 2025 21:14:51 +0300 Subject: [PATCH] Fix Vite config --- frontend/vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 6548add..52f6c54 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -6,7 +6,7 @@ import react from "@vitejs/plugin-react"; import path from "path"; import { visualizer } from 'rollup-plugin-visualizer'; -const outDir = process.env.VITE_ELECTRON ? "build/electron/dist" : "build/normal/dist"; +const outDir = process.env.VITE_ELECTRON ? "build/electron" : "build/normal"; const plugins: PluginOption[] = [ react(), @@ -24,7 +24,7 @@ const plugins: PluginOption[] = [ }), visualizer({ filename: `${outDir}/stats.html`, - open: true, + open: false, gzipSize: true }) ] @@ -93,7 +93,7 @@ export default defineConfig({ }, cssMinify: true, assetsInlineLimit: 0, - outDir: outDir, + outDir: `${outDir}/dist`, chunkSizeWarningLimit: 1024 } }); \ No newline at end of file