-
-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy path.dumirc.ts
More file actions
23 lines (20 loc) · 671 Bytes
/
.dumirc.ts
File metadata and controls
23 lines (20 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig } from 'dumi';
import path from 'path';
// const isProdSite =
// // 不是预览模式 同时是生产环境
// process.env.PREVIEW !== 'true' && process.env.NODE_ENV === 'production';
// const name = 'tooltip';
export default defineConfig({
alias: {
'rc-tooltip$': path.resolve('src'),
'rc-tooltip/es': path.resolve('src'),
},
mfsu: false,
favicons: ['https://avatars0.githubusercontent.com/u/9441414?s=200&v=4'],
themeConfig: {
name: 'Tooltip',
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
// base: isProdSite ? `/${name}/` : '/',
// publicPath: isProdSite ? `/${name}/` : '/',
});