Commit cc9e3f6b by 晏艳红

修复Docker构建问题

- 修复.dockerignore排除健康检查脚本的问题
- 将vite构建配置从terser改为esbuild(内置,无需额外依赖)
- Docker容器现在可以正常构建和启动
- 健康检查和服务访问正常工作
parent 3b422146
......@@ -74,6 +74,9 @@ cursorrules
*.bat
*.sh
# 但保留Docker相关的脚本
!docker-health-check.sh
# 测试文件
test/
tests/
......
......@@ -11,7 +11,7 @@ export default defineConfig({
},
build: {
// 生产环境构建优化
minify: 'terser',
minify: 'esbuild', // 使用esbuild代替terser,更快且内置
sourcemap: false,
rollupOptions: {
output: {
......@@ -22,13 +22,6 @@ export default defineConfig({
utils: ['xlsx']
}
}
},
// 压缩配置
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true
}
}
},
server: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment