forked from react-component/upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
32 lines (30 loc) · 786 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
// more config: https://d.umijs.org/config
import { defineConfig } from 'dumi';
const name = 'rc-upload';
export default defineConfig({
title: name,
favicon:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
logo:
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
outputPath: '.doc',
exportStatic: {},
styles: [
`a img + svg {
display: none;
}`
],
scripts: [{
content: `
(function () {
var timer = setInterval(function() {
try {
var menuList = document.getElementsByClassName('__dumi-default-menu-list');
menuList[0].childNodes[0].childNodes[0].innerText = '${name}';
clearInterval(timer);
} catch (e) {}
}, 200)
})();
`
}]
});