Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

giscafer/micro-umi-max-cra

Repository files navigation

README

demo for issue: umijs/umi#8965

问题

import { defineConfig } from '@umijs/max';

export default defineConfig({
  antd: {},
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {
    title: '@umijs/max',
  },
  routes: [
    {
      name: 'SubApp',
      path: '/sub-app',
      microApp: 'sub-app',
      //  需手动配置通配路由
      // routes: [
      //   {
      //     path: '/sub-app/*',
      //   },
      // ],
    },
    {
      name: '首页',
      path: '/home',
      component: './Home',
    },
  ],
  npmClient: 'yarn',
  qiankun: {
    master: {
      apps: [
        {
          name: 'sub-app',
          entry: '//localhost:7100/sub-app',
        },
      ],
    },
  },
});

Releases

No releases published

Packages

No packages published