.umirc.ts 930 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-11-09 11:20:18
  4. * @LastEditTime: 2021-12-20 16:33:57
  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. theme: {},
  15. routes: [
  16. {
  17. path: '/',
  18. component: '@/pages/index/index',
  19. },
  20. { path: '/login', component: '@/pages/login/index' },
  21. ],
  22. proxy: {
  23. // '/api': {
  24. // 'target': 'http://112.124.59.133:8083/',
  25. // 'changeOrigin': true,
  26. // 'pathRewrite': { '^/api' : '' },
  27. // },
  28. },
  29. fastRefresh: {},
  30. mfsu: {},
  31. // qiankun: {
  32. // master: {
  33. // sandbox: {
  34. // experimentalStyleIsolation: true, // 严格沙箱
  35. // },
  36. // },
  37. // },
  38. });