12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import { defineConfig } from 'umi';
- import defaultSettings from './defaultSettings';
- import proxy from './proxy';
- import routes from './routes';
- import darkTheme from '@ant-design/dark-theme';
- const { REACT_APP_ENV } = process.env;
- export default defineConfig({
- hash: true,
- antd: {
- dark: true,
- compact: true,
- },
- dva: {
- hmr: true,
- },
- layout: {
- name: '科德管理系统',
- locale: false,
- siderWidth: 208,
- ...defaultSettings,
- },
- locale: {
-
- default: 'zh-CN',
- antd: false,
-
- baseNavigator: false,
- },
- dynamicImport: {
- loading: '@ant-design/pro-layout/es/PageLoading',
- },
- history: { type: 'hash' },
- publicPath: '/static/',
- targets: {
- ie: 11,
- },
-
- routes,
-
- theme: {
-
-
-
-
-
- 'primary-color': defaultSettings.primaryColor,
- },
- esbuild: {},
- title: false,
- ignoreMomentLocale: true,
- proxy: proxy[REACT_APP_ENV || 'dev'],
- manifest: {
- basePath: '/',
- },
-
- plugins: ['react-dev-inspector/plugins/umi/react-inspector'],
- inspectorConfig: {
-
- exclude: [],
- babelPlugins: [],
- babelOptions: {},
- },
- resolve: {
- includes: ['src/components'],
- },
- });
|