金币系统前端
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

4 months ago
4 months ago
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. import { lazyImport, VxeResolver } from 'vite-plugin-lazy-import'
  4. // https://vite.dev/config/
  5. export default defineConfig({
  6. plugins: [vue(),
  7. lazyImport({
  8. resolvers: [
  9. VxeResolver({
  10. libraryName: 'vxe-table'
  11. }),
  12. VxeResolver({
  13. libraryName: 'vxe-pc-ui'
  14. })
  15. ]
  16. })
  17. ],
  18. server:{
  19. proxy: {
  20. '/hwjb': {
  21. // target: 'http://39.99.159.73:20090',
  22. target: 'http://192.168.8.93:10010',
  23. changeOrigin: true,
  24. rewrite: (path) => path.replace(/^\/hwjb/, ''),
  25. },
  26. },
  27. },
  28. base: process.env.NODE_ENV === "production" ? "/jtzy/Product/crm/hwjb2.0/" : "/",
  29. })