-
Notifications
You must be signed in to change notification settings - Fork 806
/
.dumirc.ts
35 lines (30 loc) · 1012 Bytes
/
.dumirc.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
import { defineConfig } from 'dumi';
const isProd = process.env.NODE_ENV !== 'development';
const ghPagePublicPath = isProd ? '/' : '/';
export default defineConfig({
publicPath: ghPagePublicPath,
base: ghPagePublicPath,
favicons: [`${ghPagePublicPath}km@2x.png`],
themeConfig: {
name: '图解React',
logo: `${ghPagePublicPath}logo.png`,
socialLinks:{
github: 'https://github.com/7kms/react-illustration-series',
}
},
hash: true,
exportStatic: {},
ssr: isProd ? {} : false,
metas: [
{
name: 'keywords',
content:
'react, react原理, 图解react, react fiber原理, react hook原理, react 合成事件, react 基本包结构',
},
{
name: 'description',
content:
'图解React原理系列, 以react核心包结构和运行机制为主线索进行展开. 包括react 基本包结构, react 工作循环, react 启动模式, react fiber原理, react hook原理, react 合成事件等核心内容',
},
],
});