You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
588 B
TypeScript

import { defineConfig } from 'umi';
import theme from './src/config/theme';
import proxy from './src/config/proxy';
import routes from './config/routes';
import defaultSetting from './src/defaultSetting';
let _defineConfig = defineConfig({
hash: true,
antd: {},
locale: {
default: 'zh-CN',
antd: true,
},
dynamicImport: {
loading: '@/loading',
},
nodeModulesTransform: {
type: 'none',
},
fastRefresh: {},
mfsu:{},
theme: theme,
proxy: proxy,
});
if (defaultSetting.localRouter) {
_defineConfig.routes = routes;
}
export default _defineConfig;