.umirc.ts 507 B

123456789101112131415161718192021222324
  1. import { defineConfig } from 'umi'
  2. export default defineConfig({
  3. publicPath: './',
  4. routes: [
  5. { path: '/', component: '@/pages/index' },
  6. { path: '/apps/dag', component: '@/pages/index' },
  7. ],
  8. theme: {
  9. '@ant-prefix': 'ant',
  10. '@menu-item-active-bg': '#f0f5ff',
  11. },
  12. extraBabelPlugins: [
  13. [
  14. 'import',
  15. {
  16. libraryName: '@antv/x6-react-components',
  17. libraryDirectory: 'es',
  18. transformToDefaultImport: false,
  19. style: true,
  20. },
  21. ],
  22. ],
  23. })