-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.dumirc.ts
More file actions
58 lines (56 loc) · 1.86 KB
/
Copy path.dumirc.ts
File metadata and controls
58 lines (56 loc) · 1.86 KB
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
48
49
50
51
52
53
54
55
56
57
58
import { defineConfig } from 'dumi'
import umiConfig from './config/config'
const newConfig = () => {
const config = { ...umiConfig }
// some config are not support dumi
const excludeKey = ['locale', 'layout', 'initialState', 'routes', 'icons']
Object.keys(config).forEach((key) => {
if (excludeKey.includes(key)) {
delete config[key]
}
})
return config
}
export default defineConfig({
...newConfig(),
plugins: [
require.resolve('@umijs/plugins/dist/moment2dayjs'),
require.resolve('@umijs/plugins/dist/antd'),
require.resolve('@umijs/plugins/dist/tailwindcss'),
require.resolve('@umijs/plugins/dist/valtio'),
require.resolve('@umijs/plugins/dist/request'),
require.resolve('@umijs/plugins/dist/model'),
require.resolve('@umijs/plugins/dist/access'),
],
mfsu: false,
locales: [{ id: 'en-US', name: 'EN', suffix: '' }],
alias: {},
// apiParser: {},
resolve: {
// Configure the entry file path, API parsing will start from here
// entryFile: './packages/utils/src/index.ts',
// auto generate docs
atomDirs: [
// utils
{ type: 'docs', dir: '.' },
// { type: 'docs', dir: 'src' },
],
},
favicons: [
'https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png',
],
// autoAlias: false,
outputPath: 'docs-dist',
publicPath: '/next-dev/',
base: '/next-dev/',
themeConfig: {
name: 'Next Dev',
logo: 'https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png',
footer: `Open-source MIT Licensed | Copyright © 2019-${new Date().getFullYear()}<br /> Powered by Next Dev`,
},
// ssr: process.env.NODE_ENV === 'development' ? undefined : {},
// chainWebpack(config, { webpack }) {
// config.module.rule('ts-in-node_modules').include.clear()
// return config
// },
})