build:用terser混淆时会出现警告,需要配置minify为terser,或者用esbuild

This commit is contained in:
xushihao 2022-10-25 09:52:12 +08:00
parent 8000aaeb13
commit c1e1610837

View File

@ -63,7 +63,8 @@ export default defineConfig({
build: {
target: 'es2015',
outDir: OUTPUT_DIR,
terserOptions: terserOptions,
// minify: 'terser', // 如果需要用terser混淆可打开这两行
// terserOptions: terserOptions,
rollupOptions: rollupOptions,
brotliSize: brotliSize,
chunkSizeWarningLimit: chunkSizeWarningLimit