You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
932 B
41 lines
932 B
import { defineConfig } from '@umijs/max';
|
|
import proxy from './proxy';
|
|
import routes from './routes';
|
|
|
|
const { UMI_ENV } = process.env;
|
|
|
|
export default defineConfig({
|
|
hash: true,
|
|
antd: {},
|
|
access: {},
|
|
model: {},
|
|
initialState: {},
|
|
fastRefresh: true,
|
|
request: {
|
|
// @ts-ignore
|
|
dataField: 'data',
|
|
},
|
|
lessLoader: {
|
|
modifyVars: {
|
|
'primary-color': '#FF4144',
|
|
},
|
|
javascriptEnabled: true,
|
|
},
|
|
layout: {
|
|
locale: false,
|
|
primaryColor: '#FF4144',
|
|
title: ' ',
|
|
},
|
|
favicons: ['/favicon.ico'],
|
|
metas: [
|
|
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=Edge,chrome=1' },
|
|
{ 'http-equiv': 'Expires', content: '0' },
|
|
{ 'http-equiv': 'Pragma', content: 'no-cache' },
|
|
{ 'http-equiv': 'Cache-control', content: 'no-cache' },
|
|
{ 'http-equiv': 'Cache', content: 'no-cache' },
|
|
],
|
|
routes: routes,
|
|
npmClient: 'yarn',
|
|
// @ts-ignore
|
|
proxy: proxy[UMI_ENV || 'dev'],
|
|
});
|
|
|