-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dumirc.ts
36 lines (34 loc) · 960 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
36
import { defineConfig } from 'dumi'
import { resolve } from 'path'
export default defineConfig({
outputPath: 'docs-dist',
apiParser: {},
resolve: {
atomDirs: [
{
type: 'component',
dir: 'src/md/components',
},
{
type: 'hooks',
dir: 'src/md/hooks',
},
],
entryFile: resolve(__dirname, 'src/apientry.tsx'),
},
themeConfig: {
name: 'maptalks-react',
editLink: false,
lastUpdated: false,
footer: false,
socialLinks: {
github: 'https://github.com/ThorSmallice/maptalks-react',
},
},
alias: {
'maptalks-react': resolve(__dirname, 'dist/maptalks-react.es.js'),
'@context': resolve(__dirname, 'src/context'),
'@hooks': resolve(__dirname, 'src/hooks'),
'@comps': resolve(__dirname, 'src/components'),
},
})