0.0.1 • Published 5 years ago

smallfish-mf v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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