54 lines
1.3 KiB
TypeScript
54 lines
1.3 KiB
TypeScript
import { defineConfig } from '@umijs/max';
|
|
import defaultSettings from './defaultSettings';
|
|
// import proxy from './proxy';
|
|
import PageRoutes from './router.config'
|
|
import theme from './theme';
|
|
|
|
const { REACT_APP_ENV } = process.env;
|
|
|
|
export default defineConfig({
|
|
hash: true,
|
|
antd: {},
|
|
dva: {},
|
|
plugins: [
|
|
require.resolve('@alita/plugins/dist/keepalive'),
|
|
require.resolve('@alita/plugins/dist/tabs-layout'),
|
|
],
|
|
keepalive: [/./],
|
|
tabsLayout: {
|
|
hasDropdown: false,
|
|
hasCustomTabs: true,
|
|
},
|
|
locale: {
|
|
default: 'zh-CN',
|
|
antd: true,
|
|
// default true, when it is true, will use `navigator.language` overwrite default
|
|
baseNavigator: false,
|
|
},
|
|
//全局加载样式
|
|
// dynamicImport: {
|
|
// loading: '@/components/PageLoading/index',
|
|
// },
|
|
targets: {
|
|
ie: 11,
|
|
},
|
|
define: {
|
|
PROJECT_THEME: JSON.stringify(theme),
|
|
},
|
|
// umi routes: https://umijs.org/docs/routing
|
|
routes: PageRoutes,
|
|
title: '招投标系统',
|
|
favicons: ['/favicon.ico'],
|
|
headScripts: [
|
|
'/officecontrol/ntkobackground.min.20220624.js',
|
|
'/screen/jsencrypt.min.js',
|
|
'/screen/jsWebControl-1.0.0.min.js',
|
|
],
|
|
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
|
|
theme,
|
|
ignoreMomentLocale: true,
|
|
manifest: {
|
|
basePath: '/',
|
|
},
|
|
});
|