vite.config.ts 706 B

1234567891011121314151617181920212223242526272829303132333435
  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. proxy: {
  15. '/gw': {
  16. target: 'http://localhost:8088',
  17. changeOrigin: true,
  18. }
  19. }
  20. },
  21. css: {
  22. preprocessorOptions: {
  23. less: {
  24. modifyVars: {
  25. // "primary-color": "#1DA57A",
  26. // "link-color": "#1DA57A",
  27. },
  28. javascriptEnabled: true,
  29. },
  30. },
  31. },
  32. });