feat: 添加 terser 作为构建工具的压缩选项
All checks were successful
/ playwright (push) Successful in 56s
/ depcheck (push) Successful in 1m46s
/ build-and-deploy-to-vercel (push) Successful in 1m39s

This commit is contained in:
严浩
2025-01-08 10:25:05 +08:00
parent 3292800f0d
commit df0ccdaed1
5 changed files with 101 additions and 74 deletions

View File

@ -25,6 +25,7 @@ export default defineConfig(({ mode, command }) => {
proxy: createViteProxy(),
},
build: {
minify: 'terser',
sourcemap: mode !== 'production' || env.VITE_SOURCE_MAP === 'true',
rollupOptions: {
onwarn: (warning, warn) => {