-
Notifications
You must be signed in to change notification settings - Fork 1
/
.umirc.ts
52 lines (50 loc) · 1.09 KB
/
.umirc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { defineConfig } from '@umijs/max';
export default defineConfig({
request: {},
fastRefresh: true,
mfsu: {},
antd: {},
npmClient: 'pnpm',
title: '大屏模板',
define: {
BREAKPOINT: 1280, // 在小于这个值的时候,采用移动端的布局
ECHARTS_DEFAULT_HEIGHT: 324, // echarts默认的高度,在移动端布局的情况下有效
ECHARTS_COUNT: 3, // 左右展示的echarts图表数量
PADDING: 16, // 左右两边的padding
},
outputPath: 'build',
hash: true,
base: '/screen-template',
publicPath: '/screen-template/',
links: [
{
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png',
},
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon-16x16.png',
},
],
routes: [
{
path: '/',
component: '@/layouts/BasicLayout',
routes: [
{
path: '/',
component: './homepage',
},
],
},
],
});