删除打包后去掉的console.log internal\vite-config\src\config\common.ts

zzq
石超 2024-06-15 15:03:44 +08:00
parent 6c92ca1589
commit 9a0527f910
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ const commonConfig: (mode: string) => UserConfig = (mode) => ({
host: true,
},
esbuild: {
drop: mode === 'production' ? ['console', 'debugger'] : [],
drop: mode === 'production' ? ['debugger'] : [],
},
build: {
reportCompressedSize: false,