import { defineConfig } from 'dumi'; export default defineConfig({ title: '@vtx/modals', favicon: '/favicon.ico', logo: '/favicon.ico', outputPath: 'docs-dist', mode: 'site', resolve: { includes: ['docs', 'components'], }, base: '/react-components', publicPath: '/react-components/', exportStatic: {}, navs: [ null, { title: 'GitLab', path: 'https://git.cloudhw.cn:3443/front-end/business/vtx-modals', }, ], extraBabelPlugins: [ ['import', { libraryName: 'antd', style: 'css' }, 'antd'], ['import', { libraryName: '@vtx/components', style: 'css' }, 'vtx-components'], [ 'import', { libraryName: '@vtx/modals', libraryDirectory: 'components', customStyleName: name => { return `../style`; }, }, '@vtx/modals', ], ], styles: [ `.__dumi-default-previewer-demo .ant-calendar-picker {margin-bottom: 10px}`, `.__dumi-default-previewer-demo .ant-time-picker {margin-bottom: 10px}`, `.markdown table td:nth-child(3) {color: #c41d7f;}`, ], chainWebpack(config) { // antd moment -> dayjs config.plugin('moment2dayjs').use('antd-dayjs-webpack-plugin'); }, locale: { default: 'zh-CN', antd: true, baseNavigator: false, }, lessLoader: { modifyVars: { // 'root-entry-name': 'dark', 'root-entry-name': 'default', }, }, proxy: { '/cloud/': { target: 'http://192.168.0.101:8005/', changeOrigin: true, }, }, });