-
Notifications
You must be signed in to change notification settings - Fork 5
/
.dumirc.ts
34 lines (30 loc) · 826 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
import { defineConfig } from 'dumi';
import path from 'path';
const name = 'antd-geek-theme-sample';
const isProdSite =
process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';
export default defineConfig({
alias: {
[`${name}$`]: path.resolve('src'),
[`${name}/es`]: path.resolve('src'),
},
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Geek Theme',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
styles: [
`
html .dumi-default-hero-title {
font-size: 120px;
}
.dumi-default-previewer-demo {
position: relative;
min-height: 300px;
}
`,
],
base: isProdSite ? `/${name}/` : '/',
publicPath: isProdSite ? `/${name}/` : '/',
});