From 52756e8a22ff5d3c5e9cf90dfa5b87742c60350d Mon Sep 17 00:00:00 2001 From: 艺术家 <10819716+q100102@user.noreply.gitee.com> Date: 星期四, 22 五月 2025 16:24:23 +0800 Subject: [PATCH] 功能优化 --- 项目代码/client/vite.config.js | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/vite.config.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/vite.config.js" index 759eb7f..65c86a5 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/client/vite.config.js" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/client/vite.config.js" @@ -13,6 +13,16 @@ vueJsx(), vueDevTools(), ], + build: { + minify: "terser", // 蹇呴』寮�鍚細浣跨敤terserOptions鎵嶆湁鏁堟灉 + terserOptions: { + compress: { + //鐢熶骇鐜鏃剁Щ闄onsole + drop_console: true, + drop_debugger: true, + }, + }, + }, resolve: { alias: [ { -- Gitblit v1.9.3