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.
42 lines
1.1 KiB
42 lines
1.1 KiB
6 months ago
|
"use strict";
|
||
|
exports.__esModule = true;
|
||
|
var max_1 = require("@umijs/max");
|
||
|
var proxy_1 = require("./proxy");
|
||
|
var routes_1 = require("./routes");
|
||
|
var UMI_ENV = process.env.UMI_ENV;
|
||
|
exports["default"] = max_1.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_1["default"],
|
||
|
npmClient: 'yarn',
|
||
|
// @ts-ignore
|
||
|
proxy: proxy_1["default"][UMI_ENV || 'dev']
|
||
|
});
|