generator-hcy-system
Version:
hcy system layout and pages
56 lines (52 loc) • 1.34 kB
text/typescript
// import { defineConfig } from '@umijs/max';
import proxy from './proxy';
import routes from './routes';
import theme from './theme.config.json';
const isDev = process.env.NODE_ENV === 'development';
// 部署的目标服务器
// const microAppUrl= 'http://192.168.1.101';
export default {
hash: true,
antd: {
theme,
},
access: {},
model: {},
initialState: {},
request: {},
// 启用react-query
reactQuery: {},
layout: {
// locale: false,
// title: '电力保障监测SaaS系统',
},
// links: [{ rel: 'icon', href: 'http://192.168.1.101:8088/upload/logo.png' }],
// 多语言设置
locale: {
default: 'zh-CN',
},
mock: {},
routes,
proxy: proxy['dev'],
npmClient: 'yarn',
// 分包策略
codeSplitting: {
jsStrategy: 'granularChunks'
},
qiankun: {
master: {
apps: [
{
name: 'business',
// 部署不同服务器时使用此entry
// entry: isDev?'//localhost:3015': microAppUrl,
// 部署同一服务器时使用此entry
// 注意:部署正式服的路径需要与子应用的base路径一致 否则会出现子应用无法加载的情况
entry: isDev?'//localhost:3015':'/child/business/',
activeRule: '/business',
history:'base',
}
],
},
},
};