55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
import { defineConfig } from '@umijs/max';
|
|
import proxy from './proxy';
|
|
import routes from './routes';
|
|
const { REACT_APP_ENV = 'dev' } = process.env;
|
|
|
|
console.log('env+++++++++++++++', process.env.NODE_ENV, REACT_APP_ENV);
|
|
|
|
export default defineConfig({
|
|
proxy: {
|
|
...proxy()
|
|
},
|
|
clickToComponent: {},
|
|
antd: {
|
|
style: 'less',
|
|
configProvider: {
|
|
componentSize: 'large',
|
|
theme: {
|
|
'root-entry-name': 'variable',
|
|
cssVar: true,
|
|
hashed: false,
|
|
components: {
|
|
Input: {
|
|
inputFontSize: 12
|
|
},
|
|
Table: {
|
|
cellFontSize: 12
|
|
}
|
|
},
|
|
token: {
|
|
colorPrimary: '#2fbf85',
|
|
borderRadius: 16,
|
|
fontSize: 12,
|
|
motion: true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
hash: true,
|
|
access: {},
|
|
model: {},
|
|
initialState: {},
|
|
request: {},
|
|
locale: {
|
|
antd: true,
|
|
baseNavigator: true,
|
|
baseSeparator: '-',
|
|
default: 'zh-CN',
|
|
title: false,
|
|
useLocalStorage: true
|
|
},
|
|
layout: false,
|
|
routes,
|
|
npmClient: 'pnpm'
|
|
}) as any;
|