forked from TuGraph-family/tugraph-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
49 lines (48 loc) · 1.28 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
import { defineConfig } from 'umi';
export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
title: 'TuGraph 高性能图数据库',
favicon:
'https://gw.alipayobjects.com/zos/bmw-prod/6290edfc-e134-4074-a550-079eeba9926d.svg',
routes: [
{ path: '/', component: '@/pages/index' },
{ path: '/product', component: '@/pages/product' },
{ path: '/demo', component: '@/pages/demo' },
{ path: '/doc', component: '@/pages/doc' },
{ path: '/blog', component: '@/pages/blog' },
{ path: '/blog:id', component: '@/pages/blog' },
{ path: '/download', component: '@/pages/download' },
{ path: '/form', component: '@/pages/form' },
],
theme: {
'primary-color': '#1677FF',
},
chainWebpack(memo, { env, webpack }) {
memo.module
.rule('plaintext')
.test(/\.(txt|text)$/)
.use('raw-loader')
.loader(require.resolve('raw-loader'));
memo.module
.rule('markdown')
.test(/\.md$/)
.use('frontmatter-markdown-loader')
.loader('frontmatter-markdown-loader');
},
ssr: false,
exportStatic: {},
fastRefresh: {},
request: {
dataField: '',
},
locale: {
antd: true,
baseNavigator: true,
baseSeparator: '-',
default: 'zh-CN',
title: true,
useLocalStorage: true,
},
});