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

4 months ago
4 months ago
4 months ago
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. import legacy from '@vitejs/plugin-legacy';
  5. // https://vite.dev/config/
  6. export default defineConfig({
  7. esbuild: {
  8. supported: {
  9. bigint: true
  10. }
  11. },
  12. plugins: [vue(),
  13. legacy({
  14. targets: ['defaults', 'not IE 11', 'chrome >=73'],
  15. modernPolyfills: true
  16. }),
  17. lazyImport({
  18. resolvers: [
  19. VxeResolver({
  20. libraryName: 'vxe-table'
  21. }),
  22. VxeResolver({
  23. libraryName: 'vxe-pc-ui'
  24. })
  25. ]
  26. })
  27. ],
  28. server: {
  29. proxy: {
  30. '/hwjb': {
  31. // target: 'http://54.251.137.151:10704',
  32. target: 'http://192.168.8.93:10702',
  33. // target: 'http://54.251.137.151:10702',
  34. changeOrigin: true,
  35. rewrite: (path) => path.replace(/^\/hwjb/, ''),
  36. },
  37. },
  38. },
  39. // base: process.env.NODE_ENV === "production" ? "/gold_html_dev/" : "/",
  40. base: process.env.NODE_ENV === "production" ? "./" : "/",
  41. })