feat: 添加 terser 作为构建工具的压缩选项
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user