mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
perf(@vant/cli): using terser to minify package (#9640)
This commit is contained in:
parent
61cce4c16e
commit
78bcd368ae
@ -22,7 +22,8 @@ export function getViteConfigForPackage(minify: boolean): InlineConfig {
|
||||
return minify ? `${name}${suffix}.min.js` : `${name}${suffix}.js`;
|
||||
},
|
||||
},
|
||||
minify,
|
||||
// terser has better compression than esbuild
|
||||
minify: minify ? 'terser' : false,
|
||||
rollupOptions: {
|
||||
external: ['vue'],
|
||||
output: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user