nicenote/.dumirc.ts
2024-01-28 20:43:39 +08:00

39 lines
927 B
TypeScript

import { defineConfig } from 'dumi';
export default defineConfig({
title: 'Nice Note',
themeConfig: {
navs: [
null,
{
title: 'GitHub',
path: 'git@github.com:j710328466/learn-note.git',
},
]
},
logo: 'https://i.niupic.com/images/2021/06/07/9krN.png',
favicons: ['https://i.niupic.com/images/2021/06/07/9krN.png'],
outputPath: 'docs-dist',
hash: true,
history: {
type: 'hash',
},
publicPath: '/',
resolve: {
docDirs: ['docs'],
atomDirs: [{ type: 'component', dir: 'src' }],
codeBlockMode: 'passive',
},
locales: [{ id: 'zh-CN', name: '中文' }], // 2.0 默认值
analyze: {
analyzerMode: 'server',
analyzerPort: 8888,
openAnalyzer: false,
// generate stats file while ANALYZE_DUMP exist
generateStatsFile: false,
statsFilename: 'stats.json',
logLevel: 'info',
defaultSizes: 'parsed', // stat // gzip
}
});