Files
fe_service_ebtp_frontend/config/config.ts

42 lines
923 B
TypeScript
Raw Normal View History

2020-12-23 11:14:35 +08:00
import { defineConfig } from 'umi';
import defaultSettings from './defaultSettings';
2022-03-10 14:24:13 +08:00
// import proxy from './proxy';
2020-12-23 11:14:35 +08:00
import PageRoutes from './router.config'
2025-06-12 17:19:52 +08:00
import theme from './theme';
2020-12-23 11:14:35 +08:00
const { REACT_APP_ENV } = process.env;
2025-06-12 17:19:52 +08:00
2020-12-23 11:14:35 +08:00
export default defineConfig({
hash: true,
antd: {},
dva: {
hmr: true,
},
locale: {
default: 'zh-CN',
antd: true,
// default true, when it is true, will use `navigator.language` overwrite default
2025-07-04 10:03:42 +08:00
baseNavigator: false,
2020-12-23 11:14:35 +08:00
},
//全局加载样式
// dynamicImport: {
// loading: '@/components/PageLoading/index',
// },
targets: {
ie: 11,
},
2025-07-04 10:03:42 +08:00
define: {
PROJECT_THEME: JSON.stringify(theme),
},
2020-12-23 11:14:35 +08:00
// umi routes: https://umijs.org/docs/routing
routes: PageRoutes,
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
2025-06-12 17:19:52 +08:00
theme,
2020-12-23 11:14:35 +08:00
// @ts-ignore
title: false,
ignoreMomentLocale: true,
manifest: {
basePath: '/',
},
});