Files
Pine 28e233520b feat: 园区大屏前端(React+Vite+Tailwind+three.js+MQTT)
- 路由:数据大屏/数字孪生/AI/媒体轮播/语音/企业墙
- 多园区通用,园区账号登录显示本园区
2026-08-23 22:34:45 +08:00

22 lines
730 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
clearScreen: false,
server: {
port: 1420,
strictPort: true,
// 监听所有网络接口,局域网内其他设备可通过 http://<IP>:1420 访问
host: true,
watch: {
// 忽略 src-tauri 与后端 venv/vendorultralytics/matplotlib 的 html 会误触发页面 reload
ignored: ["**/src-tauri/**", "**/backend/.venv/**", "**/backend/vendor/**"],
},
// 注:API 走 src/config.js 的 API_BASEPython 后端 :10085)直连,不再需要 dev 代理
},
});