123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /*
- * @Author: your name
- * @Date: 2021-09-03 14:28:27
- * @LastEditTime: 2022-01-01 13:13:35
- * @LastEditors: Please set LastEditors
- * @Description: In User Settings Edit
- * @FilePath: /MedicalWisdomCheckSys/config/config.ts
- */
- // https://umijs.org/config/
- import { defineConfig } from 'umi';
- import { join } from 'path';
- import defaultSettings from './defaultSettings';
- import proxy from './proxy';
- import routes from './routes';
- const { REACT_APP_ENV } = process.env;
- export default defineConfig({
- hash: true,
- antd: {},
- dva: {
- hmr: true,
- },
- layout: {
- // https://umijs.org/zh-CN/plugins/plugin-layout
- locale: false,
- siderWidth: 208,
- ...defaultSettings,
- },
- dynamicImport: {
- loading: '@ant-design/pro-layout/es/PageLoading',
- },
- targets: {
- ie: 11,
- },
- routes,
- theme: {
- 'primary-color': defaultSettings.primaryColor,
-
- },
- // esbuild is father build tools
- // https://umijs.org/plugins/plugin-esbuild
- esbuild: {},
- title: false,
- ignoreMomentLocale: true,
- proxy: proxy[REACT_APP_ENV || 'dev'],
- manifest: {
- basePath: '/',
- },
- autoprefixer:{
- },
- // Fast Refresh 热更新
- fastRefresh: {},
- openAPI: [
- {
- requestLibPath: "import { request } from 'umi'",
- // 或者使用在线的版本
- // schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json"
- schemaPath: join(__dirname, 'oneapi.json'),
- mock: false,
- },
- {
- requestLibPath: "import { request } from 'umi'",
- schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json',
- projectName: 'swagger',
- },
- ],
- nodeModulesTransform: { type: 'none' },
- mfsu: {
- // production: { output: '.mfsu-production' }
- },
- // webpack5: {
- // },
- exportStatic: {},
- // qiankun: {
- // slave: {},
- // },
- });
|