You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1023 B
42 lines
1023 B
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { lazyImport, VxeResolver } from 'vite-plugin-lazy-import'
|
|
import legacy from '@vitejs/plugin-legacy';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
esbuild: {
|
|
supported: {
|
|
bigint: true
|
|
}
|
|
},
|
|
plugins: [vue(),
|
|
legacy({
|
|
targets: ['defaults', 'not IE 11', 'chrome >=73'],
|
|
modernPolyfills: true
|
|
}),
|
|
lazyImport({
|
|
resolvers: [
|
|
VxeResolver({
|
|
libraryName: 'vxe-table'
|
|
}),
|
|
VxeResolver({
|
|
libraryName: 'vxe-pc-ui'
|
|
})
|
|
]
|
|
})
|
|
],
|
|
server: {
|
|
proxy: {
|
|
'/hwjb': {
|
|
// target: 'http://54.251.137.151:10704',
|
|
target: 'http://192.168.8.93:10702',
|
|
// target: 'http://54.251.137.151:10702',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/hwjb/, ''),
|
|
},
|
|
},
|
|
},
|
|
// base: process.env.NODE_ENV === "production" ? "/gold_html_dev/" : "/",
|
|
base: process.env.NODE_ENV === "production" ? "./" : "/",
|
|
})
|