generator-min-app
Version:
hcy system layout and pages
41 lines (37 loc) • 809 B
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';
export default {
base: '/',
hash: true,
publicPath: isDev?'/':'/child/dashboard/',
outputPath: './child/business',
antd: {
theme: theme,
},
access: {},
model: {},
initialState: {},
request: {},
// 启用react-query
reactQuery: {},
// 多语言设置
locale: {
default: 'zh-CN',
},
mock: {},
routes: routes,
proxy: proxy['dev'],
npmClient: 'yarn',
// 分包策略
codeSplitting: {
jsStrategy: 'granularChunks',
},
qiankun: {
slave: {},
},
// 使用同一域名下的子路径
// outputPath: '../system-layout/dist/children/dashboard',
};