-
Notifications
You must be signed in to change notification settings - Fork 1
/
.umirc.ts
47 lines (45 loc) · 1.12 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
import { defineConfig } from 'dumi';
const repo = 'react-nivo-slider';
export default defineConfig({
mode: 'doc',
title: repo,
base: `/${repo}/`,
publicPath: `/${repo}/`,
resolve: {
includes: ['docs'],
},
hash: true,
webpack5: {},
cssModulesTypescriptLoader: {},
// @ts-ignore
chainWebpack(memo, { env, webpack, createCSSRule }) {
memo.cache = {
type: 'filesystem',
name: 'dumi',
buildDependencies: {
config: [__filename],
},
store: 'pack',
};
memo.plugins.delete('friendly-error');
memo.plugins.delete('copy');
},
favicon:
'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
outputPath: 'docs-dist',
styles: [
`
#root .__dumi-default-menu-header p {
display:none;
}
#root .__dumi-default-menu-header h1 {
font-size: 24px;
margin: 16px auto;
}
#root .__dumi-default-mobile-demo-layout{
padding:0;
}
`,
],
});