smallfish-mf

0.0.1 • Public • Published

document

setExcludes(list: Array)

exclude resources file (js or css) which in the subapp

start()

start micro service. it will call single-spa's start method

registerMicroApp(app: AppObj)

Interface AppObj {
  name: string;
  /**
   * e.g. http://0.0.0.0:9000/index.html
   */
  entry: string;
  /**
   * if activeRule return true, will call this method, only called once.
   */
  render(obj: {appContent: string, loading: boolean});
  activeRule(location) => boolean;
}

example

# it will listen the ports of 8080, 9000, 9001
npm run install:example
npm start

About

Readme

Keywords

none

Package Sidebar

Install

npm i smallfish-mf

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

55.9 kB

Total Files

14

Last publish

Collaborators

  • rocksandy