.umirc.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-12-04 14:56:41
  6. * @FilePath: /BudgetManaSystem/.umirc.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. import { defineConfig } from '@umijs/max';
  10. const { REACT_APP_ENV } = process.env;
  11. export default defineConfig({
  12. antd: {
  13. configProvider: {
  14. prefixCls: 'kcim-ant', //新开项目时,需要改成新项目的前缀 xxx-ant
  15. },
  16. },
  17. qiankun: {
  18. slave: {},
  19. },
  20. mfsu: false,
  21. lessLoader: {
  22. modifyVars: {
  23. '@ant-prefix': 'kcim-ant', //新开项目时,需要改成新项目的前缀 xxx-ant
  24. '@primary-color': '#3377FF',
  25. '@border-color-base': '#dae2f2'
  26. },
  27. javascriptEnabled: true,
  28. }, //对应修改生成的 antd 样式类名
  29. access: {},
  30. model: {},
  31. initialState: {},
  32. request: {},
  33. layout: {
  34. title: '康程智联前端项目模板',
  35. layout: 'side',
  36. menuProps: {
  37. theme: 'light',
  38. }
  39. },
  40. manifest: {
  41. basePath: '/',
  42. },
  43. publicPath: REACT_APP_ENV == 'dev' ? '/' : '/',
  44. proxy: {
  45. '/gateway': {
  46. target: 'http://localhost:5000/gateway',//如果是在中台中运行,则走的中台代理
  47. changeOrigin: true,
  48. }
  49. },
  50. routes: [
  51. {
  52. path: '/demo',
  53. name: 'demo',
  54. component: './demo/index',
  55. },
  56. ],
  57. npmClient: 'yarn',
  58. });