| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 | 
							- import {defineConfig} from 'vite'
 
- import vue from '@vitejs/plugin-vue'
 
- import {resolve} from 'path'
 
- // vue setup 的糖语法
 
- import VueSetupExtend from 'vite-plugin-vue-setup-extend'
 
- // 不用导入 vue 的 import 了
 
- import AutoImport from 'unplugin-auto-import/vite'
 
- import Icons from "unplugin-icons/vite";
 
- const pathResolve = (dir) => {
 
-     return resolve(__dirname, '.', dir)
 
- }
 
- const alias = {
 
-     '@': pathResolve('src'),
 
- }
 
- export default defineConfig({
 
-     define: {
 
-         __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'true'
 
-     },
 
-     esbuild: {
 
-         jsxFactory: 'h',
 
-         jsxFragment: 'Fragment'
 
-     },
 
-     externals: {
 
-         "BMap": "BMap",
 
-         "BMapLib": "BMapLib"
 
-     },
 
-     resolve: {
 
-         alias,
 
-         extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
 
-     },
 
-     plugins: [
 
-         Icons({
 
-             autoInstall: true,
 
-             compiler: "vue3",
 
-         }),
 
-         VueSetupExtend(),
 
-         vue(),
 
-         AutoImport({
 
-             dts: 'src/auto-imports.d.ts',
 
-             imports: ['vue']
 
-         })
 
-     ],
 
-     server: {
 
-         host: '0.0.0.0',
 
-         port: 3000,
 
-         proxy: {
 
-             '/emr/runtime': {
 
-                 //这里配置运行时服务地址
 
-                 target: 'http://172.16.32.125:8001/emr',
 
-                 secure: false, //如果运行时服务是https,此处配置为true
 
-                 changeOrigin: true, //支持跨域调用,这里配置为true
 
-                 rewrite: path => path.replace(/^\/emr/, '')
 
-             },
 
-             '/emr/archive': {
 
-                 //这里配置运行时服务地址
 
-                 target: 'http://172.16.32.125:8001/emr',
 
-                 secure: false, //如果运行时服务是https,此处配置为true
 
-                 changeOrigin: true, //支持跨域调用,这里配置为true
 
-                 rewrite: path => path.replace(/^\/emr/, '')
 
-             },
 
-         }
 
-     },
 
-     build: {
 
-         chunkSizeWarningLimit: 1000,
 
-         outDir: 'release/dist'
 
-     },
 
- })
 
 
  |