12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /*
- * @Author: code4eat awesomedema@gmail.com
- * @Date: 2022-12-14 14:14:32
- * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-12-04 14:56:41
- * @FilePath: /BudgetManaSystem/.umirc.ts
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
- import { defineConfig } from '@umijs/max';
- const { REACT_APP_ENV } = process.env;
- export default defineConfig({
- antd: {
- configProvider: {
- prefixCls: 'kcim-ant', //新开项目时,需要改成新项目的前缀 xxx-ant
- },
- },
- qiankun: {
- slave: {},
- },
- mfsu: false,
- lessLoader: {
- modifyVars: {
- '@ant-prefix': 'kcim-ant', //新开项目时,需要改成新项目的前缀 xxx-ant
- '@primary-color': '#3377FF',
- '@border-color-base': '#dae2f2'
- },
- javascriptEnabled: true,
- }, //对应修改生成的 antd 样式类名
- access: {},
- model: {},
- initialState: {},
- request: {},
- layout: {
- title: '康程智联前端项目模板',
- layout: 'side',
- menuProps: {
- theme: 'light',
- }
- },
- manifest: {
- basePath: '/',
- },
- publicPath: REACT_APP_ENV == 'dev' ? '/' : '/',
- proxy: {
- '/gateway': {
- target: 'http://localhost:5000/gateway',//如果是在中台中运行,则走的中台代理
- changeOrigin: true,
- }
- },
- routes: [
- {
- path: '/demo',
- name: 'demo',
- component: './demo/index',
- },
- ],
- npmClient: 'yarn',
- });
|