From 693c618c788b01124c2b2b6e39f4b38b5bd7b7ab Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 12 Jan 2023 09:05:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8E=BB=E9=99=A4console=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wxmp/vite.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wxmp/vite.config.js b/wxmp/vite.config.js index ef97458..c1b2038 100644 --- a/wxmp/vite.config.js +++ b/wxmp/vite.config.js @@ -4,4 +4,12 @@ import uni from '@dcloudio/vite-plugin-uni' export default defineConfig({ optimizeDeps: ['@dcloudio/uni-ui'], plugins: [uni()], + build: { + minify: 'terser', + terserOptions: { + compress: { + drop_console: true, + }, + }, + } })