default: ‘zh-CN’,
antd: true,
// default true, when it is true, will use navigator.language
overwrite default
baseNavigator: true,
},
dynamicImport: {
loading: ‘@/components/PageLoading/index’,
},
targets: {
ie: 11,
},
// umi routes: https://umijs.org/docs/routing
routes,
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
theme: {
‘primary-color’: defaultSettings.primaryColor,
},
title: false,
ignoreMomentLocale: true,
proxy: proxy[REACT_APP_ENV || ‘dev’],
manifest: {
basePath: ‘/’,
},
//如果适配ie11 请注释下面esbuild
// esbuild: {},
base: ‘/static/admin/’,
publicPath: ‘/static/admin/’,
});
- 判断是否是IE浏览器
/**
-
判断是否是IE浏览器
-
@returns
*/