generated from Wxh16144/easy-antd-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dumirc.ts
36 lines (33 loc) · 930 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 path from 'path';
import { homepage } from './package.json';
const isProd = process.env.NODE_ENV === 'production';
// 不是预览模式 同时是生产环境
const isProdSite = process.env.PREVIEW !== '1' && isProd;
const name = 'react-record-hotkey';
export default defineConfig({
plugins: ['dumi-plugin-code-snippets'],
themeConfig: {
name,
github: homepage,
hero: {
showCustomContent: true,
},
},
base: isProdSite ? `/${name}/` : '/',
publicPath: isProdSite ? `/${name}/` : '/',
html2sketch: {},
mfsu: false,
outputPath: '.doc',
alias: {
antd$: require.resolve('antd'),
'react-use-record-hotkey$': path.resolve(
__dirname,
'./packages/react-use-record-hotkey/src/index.ts',
),
'antd-record-hotkey-input$': path.resolve(
__dirname,
'./packages/antd-record-hotkey-input/src/index.ts',
),
},
});