chore(dev): vite 监视优化与依赖清理
- vite.config:server.watch.ignored 忽略 src-tauri/backend venv/vendor(避免 ultralytics/matplotlib html 误触发整页 reload) - 移除已弃用的 @mediapipe/tasks-vision(由后端 YOLO 替代)
This commit is contained in:
+2
-1
@@ -13,7 +13,8 @@ export default defineConfig(async () => ({
|
||||
// 监听所有网络接口,局域网内其他设备可通过 http://<IP>:1420 访问
|
||||
host: true,
|
||||
watch: {
|
||||
ignored: ["**/src-tauri/**"],
|
||||
// 忽略 src-tauri 与后端 venv(ultralytics/matplotlib 的 html 会误触发页面 reload)
|
||||
ignored: ["**/src-tauri/**", "**/backend/.venv/**", "**/backend/vendor/**"],
|
||||
},
|
||||
// 开发时代理 API 请求到 Rust 后端
|
||||
proxy: {
|
||||
|
||||
Reference in New Issue
Block a user