From 05df1ebfdba738c762aafa92d6f92a95d40c8a2a Mon Sep 17 00:00:00 2001 From: jialin Date: Sun, 30 Jun 2024 14:05:55 +0800 Subject: [PATCH] fix: build drop console --- config/config.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/config/config.ts b/config/config.ts index e60a3b47..b781887c 100644 --- a/config/config.ts +++ b/config/config.ts @@ -45,15 +45,14 @@ export default defineConfig({ } ]); }, - terserOptions: { - compress: { - drop_console: true, - drop_debugger: true - } + jsMinifierOptions: { + drop_console: true, + drop_debugger: true } } : {}), // esbuildMinifyIIFE: true, + favicons: ['/static/favicon.ico'], jsMinifier: 'terser', cssMinifier: 'cssnano',