|  | @ -1,10 +1,20 @@ | 
		
	
		
			
				|  |  | import { defineConfig } from 'vite' |  |  | import { defineConfig } from 'vite' | 
		
	
		
			
				|  |  | import vue from '@vitejs/plugin-vue' |  |  | import vue from '@vitejs/plugin-vue' | 
		
	
		
			
				|  |  | import { lazyImport, VxeResolver } from 'vite-plugin-lazy-import' |  |  | import { lazyImport, VxeResolver } from 'vite-plugin-lazy-import' | 
		
	
		
			
				|  |  |  |  |  | import legacy from '@vitejs/plugin-legacy'; | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | // https://vite.dev/config/
 |  |  | // https://vite.dev/config/
 | 
		
	
		
			
				|  |  | export default defineConfig({ |  |  | export default defineConfig({ | 
		
	
		
			
				|  |  |  |  |  |   esbuild: { | 
		
	
		
			
				|  |  |  |  |  |     supported: { | 
		
	
		
			
				|  |  |  |  |  |       bigint: true | 
		
	
		
			
				|  |  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |  |   }, | 
		
	
		
			
				|  |  |   plugins: [vue(), |  |  |   plugins: [vue(), | 
		
	
		
			
				|  |  |  |  |  |   legacy({ | 
		
	
		
			
				|  |  |  |  |  |     targets: ['defaults', 'not IE 11', 'chrome >=73'], | 
		
	
		
			
				|  |  |  |  |  |     modernPolyfills: true | 
		
	
		
			
				|  |  |  |  |  |   }), | 
		
	
		
			
				|  |  |   lazyImport({ |  |  |   lazyImport({ | 
		
	
		
			
				|  |  |     resolvers: [ |  |  |     resolvers: [ | 
		
	
		
			
				|  |  |       VxeResolver({ |  |  |       VxeResolver({ | 
		
	
	
		
			
				|  | @ -20,11 +30,13 @@ export default defineConfig({ | 
		
	
		
			
				|  |  |     proxy: { |  |  |     proxy: { | 
		
	
		
			
				|  |  |       '/hwjb': { |  |  |       '/hwjb': { | 
		
	
		
			
				|  |  |         // target: 'http://39.99.159.73:20090',
 |  |  |         // target: 'http://39.99.159.73:20090',
 | 
		
	
		
			
				|  |  |         target: 'http://192.168.8.93:10010', |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         // target: 'http://192.168.8.93:10010',
 | 
		
	
		
			
				|  |  |  |  |  |         target: 'http://54.251.137.151:10702', | 
		
	
		
			
				|  |  |         changeOrigin: true, |  |  |         changeOrigin: true, | 
		
	
		
			
				|  |  |         rewrite: (path) => path.replace(/^\/hwjb/, ''), |  |  |         rewrite: (path) => path.replace(/^\/hwjb/, ''), | 
		
	
		
			
				|  |  |       }, |  |  |       }, | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   base: process.env.NODE_ENV === "production" ? "/jtzy/Product/other/test/hwjb/" : "/", |  |  |  | 
		
	
		
			
				|  |  |  |  |  |   // base: process.env.NODE_ENV === "production" ? "/jtzy/Product/other/test/hwjb/" : "/",
 | 
		
	
		
			
				|  |  |  |  |  |   base: process.env.NODE_ENV === "production" ? "./" : "/", | 
		
	
		
			
				|  |  | }) |  |  | }) |