Files
geo-tools/vite.config.js
T
missumandCursor 88e201e50b refactor: harden deps, fix geo math, and add engineering tooling
Replace xlsx with exceljs, unify CRS/DMS logic, move pages to views with shared map/toast composables, and add Vitest/ESLint/Prettier plus docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 09:26:15 +08:00

27 lines
758 B
JavaScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
host: '0.0.0.0', // 允许局域网访问
port: 5173, // 端口号,可自定义
strictPort: false, // 端口被占用时自动尝试下一个
open: false, // 启动时不自动打开浏览器
},
base: '/geo-tools/',
build: {
rollupOptions: {
output: {
manualChunks: {
'vue-vendor': ['vue', 'vue-router'],
'geo-libs': ['@turf/area', '@turf/length', '@turf/helpers', 'proj4', 'gcoord'],
'ui-libs': ['lucide-vue-next', 'leaflet'],
'exceljs': ['exceljs']
}
}
}
}
})