-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.umirc.ts
46 lines (44 loc) · 917 Bytes
/
.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
import { defineConfig } from 'dumi'
import fs from 'fs'
import path from 'path'
const resolveCss = () => {
const data = fs.readFileSync(path.resolve(__dirname, './website/global.css'), 'utf-8')
return data.toString()
}
export default defineConfig({
title: ' ',
mode: 'site',
resolve: {
includes: ['./website'],
previewLangs: [],
},
locales: [
['zh-CN', '中文'],
['en-US', 'English'],
],
logo: 'https://static.ahwgs.cn/gantt_logo.png',
navs: {
'en-US': [
null,
{
title: 'GitHub',
path: 'https://github.com/ahwgs/react-gantt',
},
],
'zh-CN': [
null,
{
title: 'GitHub',
path: 'https://github.com/ahwgs/react-gantt',
},
],
},
hash: true,
history: {
type: 'hash',
},
// base: '/react-gantt',
publicPath: '/react-gantt/',
outputPath: './dist-website',
styles: [resolveCss()],
})