vite.config.ts 783 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { fileURLToPath, URL } from "node:url";
  2. import { defineConfig } from "vite";
  3. import vue from "@vitejs/plugin-vue";
  4. import vueJsx from "@vitejs/plugin-vue-jsx";
  5. // https://vitejs.dev/config/
  6. export default defineConfig({
  7. plugins: [vue(), vueJsx()],
  8. resolve: {
  9. alias: {
  10. "@": fileURLToPath(new URL("./src", import.meta.url)),
  11. },
  12. },
  13. server: {
  14. host: '0.0.0.0',
  15. port: 5274,
  16. proxy: {
  17. '/gw': {
  18. // target: 'http://localhost:8088',
  19. target: 'http://172.16.1.199:8088',
  20. changeOrigin: true,
  21. }
  22. }
  23. },
  24. css: {
  25. preprocessorOptions: {
  26. less: {
  27. modifyVars: {
  28. "primary-color": "#0079C2",
  29. "primary-1": "#E4F4FF",
  30. },
  31. javascriptEnabled: true,
  32. },
  33. },
  34. },
  35. });