12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
-
- import { defineConfig } from '@umijs/max';
- 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: REACT_APP_ENV ? '' : ''
- },
- publicPath: '/w2/',
- hash: true,
- history: {
- type: 'hash'
- },
- antd: {
- dark: true,
- },
- request: {},
- initialState: {},
- model: {},
- layout: {
-
- locale: false,
- siderWidth: 208,
- ...defaultSettings,
- },
-
- locale: false,
-
- jsMinifier: 'terser',
- cssMinifier: 'cssnano',
- targets: {
- ie: 11,
- },
-
- routes,
- access: {},
-
- theme: {
-
-
-
- 'root-entry-name': 'variable',
- },
- ignoreMomentLocale: true,
- proxy: proxy[REACT_APP_ENV || 'dev'],
- manifest: {
- basePath: '/',
- },
-
- fastRefresh: true,
- presets: ['umi-presets-pro'],
- openAPI: false,
- });
|