build: 修改打包错误

This commit is contained in:
奔跑的面条 2025-02-20 23:38:12 +08:00
parent 7d0beec210
commit 345c4020a6
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
},
"scripts": {
"dev": "vite --host",
"build": "vue-tsc --noEmit && vite build",
"build": "vite build",
"preview": "vite preview",
"new": "plop --plopfile ./plop/plopfile.js",
"postinstall": "husky install",

View File

@ -76,7 +76,7 @@ export default defineConfig({
})
],
build: {
target: 'es2015',
target: 'es2020',
outDir: OUTPUT_DIR,
// minify: 'terser', // 如果需要用terser混淆可打开这两行
// terserOptions: terserOptions,