1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
-
- 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({
- define: {
- API_BASE: 'https://pet-certificate-online.njyunzhi.com',
- },
- base: '/admin/',
- publicPath: './',
- hash: true,
- history: {
- type: 'hash',
- },
- antd: {},
- dva: {
- hmr: true,
- },
- layout: {
-
- locale: false,
- siderWidth: 208,
- ...defaultSettings,
- },
-
- locale: {
-
- default: 'zh-CN',
- antd: true,
-
- baseNavigator: true,
- },
- dynamicImport: {
- loading: '@ant-design/pro-layout/es/PageLoading',
- },
- targets: {
- ie: 11,
- },
-
- routes,
-
- theme: {
- 'root-entry-name': 'variable',
- },
-
-
- esbuild: {},
- title: false,
- ignoreMomentLocale: true,
- proxy: proxy[REACT_APP_ENV || 'dev'],
- manifest: {
- basePath: '/',
- },
-
- fastRefresh: {},
- openAPI: [
- {
- requestLibPath: "import { request } from 'umi'",
-
-
- 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',
- },
-
- webpack5: {},
- exportStatic: {},
- });
|