.umirc.ts 977 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-11-09 11:20:18
  4. * @LastEditTime: 2022-01-06 11:20:55
  5. * @LastEditors: Please set LastEditors
  6. * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  7. * @FilePath: /KC-MiddlePlatform/.umirc.ts
  8. */
  9. import { defineConfig } from 'umi';
  10. export default defineConfig({
  11. nodeModulesTransform: {
  12. type: 'none',
  13. },
  14. dva: {
  15. immer: true,
  16. hmr: false,
  17. },
  18. theme: {},
  19. routes: [
  20. {
  21. path: '/',
  22. component: '@/pages/index/index',
  23. },
  24. { path: '/login', component: '@/pages/login/index' },
  25. ],
  26. proxy: {
  27. // '/api': {
  28. // 'target': 'http://112.124.59.133:8083/',
  29. // 'changeOrigin': true,
  30. // 'pathRewrite': { '^/api' : '' },
  31. // },
  32. },
  33. fastRefresh: {},
  34. mfsu: {},
  35. // qiankun: {
  36. // master: {
  37. // sandbox: {
  38. // experimentalStyleIsolation: true, // 严格沙箱
  39. // },
  40. // },
  41. // },
  42. });