smallfish-mf

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

Usage no npm install needed!

<script type="module">
  import smallfishMf from 'https://cdn.skypack.dev/smallfish-mf';
</script>

README

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