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.
30 lines
736 B
30 lines
736 B
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { lazyImport, VxeResolver } from 'vite-plugin-lazy-import'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(),
|
|
lazyImport({
|
|
resolvers: [
|
|
VxeResolver({
|
|
libraryName: 'vxe-table'
|
|
}),
|
|
VxeResolver({
|
|
libraryName: 'vxe-pc-ui'
|
|
})
|
|
]
|
|
})
|
|
],
|
|
server:{
|
|
proxy: {
|
|
'/hwjb': {
|
|
// target: 'http://39.99.159.73:20090',
|
|
target: 'http://192.168.8.93:10010',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/hwjb/, ''),
|
|
},
|
|
},
|
|
},
|
|
base: process.env.NODE_ENV === "production" ? "/jtzy/Product/crm/hwjb2.0/" : "/",
|
|
})
|