Skip to content

arnkorty/mfapp

Repository files navigation

Getting Started

迷你版简化版前端微服务框架

Usage

import {mfAppRegister, mfAppRun} from 'mfapp';
mfAppRegister({
  name: 'react-app',
  entry: 'http:https://localhost:2344/reactapp',
  match: (location) => location.href === '/react-app',
  hooks: {
    mounted: () => {},
    unmounted: () => {},
    bootstrap: () => {}
  }
})
mfAppRegister({
  name: 'vue-app',
  entry: 'http:https://localhost:2344/vueapp',
  match: (location) => location.href === '/vue-app',
  hooks: {
    mounted: () => {},
    unmounted: () => {},
    bootstrap: () => {}
  }
})
mfAppRun()
<react-app />
<vue-app />

About

微前端框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published