Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 631 Bytes

README.md

File metadata and controls

34 lines (31 loc) · 631 Bytes

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 />