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.
|
|
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/other/test/hwjb/" : "/",
base: process.env.NODE_ENV === "production" ? "/jtzy/Product/crm/hwjb2.0/" : "/", })
|