We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb3731 commit e8fe9d0Copy full SHA for e8fe9d0
DEPLOYMENT.md
@@ -78,9 +78,16 @@ git push origin main
78
79
### 构建失败
80
81
+#### Terser 错误
82
+如果遇到 "terser not found" 错误:
83
+- 已修复:将 `minify: 'terser'` 改为 `minify: 'esbuild'`
84
+- esbuild 是 Vite 的默认压缩器,无需额外安装
85
+
86
+#### 其他构建问题
87
1. 检查Node.js版本兼容性
88
2. 确保所有依赖都已正确安装
89
3. 查看Actions日志中的错误信息
90
+4. 检查是否有TypeScript类型错误
91
92
### 页面无法访问
93
vite.config.ts
@@ -20,7 +20,7 @@ export default defineConfig(({ mode }) => ({
20
outDir: 'dist',
21
assetsDir: 'assets',
22
sourcemap: false,
23
- minify: 'terser',
+ minify: 'esbuild',
24
rollupOptions: {
25
output: {
26
manualChunks: {
0 commit comments