From 9f0c122baea3db5fd118800b4d091d32cac28423 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Wed, 20 Nov 2024 12:54:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=8F=AA=E5=9C=A8build?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E6=B7=B7=E6=B7=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gringotts-frontend/vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gringotts-frontend/vite.config.js b/gringotts-frontend/vite.config.js index 304f41f..58d7858 100644 --- a/gringotts-frontend/vite.config.js +++ b/gringotts-frontend/vite.config.js @@ -17,6 +17,7 @@ export default defineConfig(({ command, mode }) => { }, plugins: [ obfuscatorPlugin({ + apply: config => config['mode'] === 'build', options: { compact: true, controlFlowFlattening: true,