import { defineConfig } from 'dumi'; import theme, { colors, token, components } from 'iglootheme'; export default defineConfig({ favicons: ['/favicon.ico'], outputPath: 'build', themeConfig: { mode: 'site', title: 'iglooform', logo: '/logo.png', name: 'iglooform', nav: { mode: 'append', value: [ { title: '2.x', link: 'https://iglooform.dev.axinan.com', }, ], }, }, lessLoader: { modifyVars: theme, }, chainWebpack: (memo) => { memo.module.rule('font').test(/\.otf/).set('type', 'asset/inline'); }, plugins: ['@umijs/plugins/dist/antd'], antd: { theme: { token, components, }, }, autoAlias: true, });