microspa-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

microspa

microspa is a library that lets you enjoy front-end microservices. microspa is based on single-spa.

Install

# npm 
npm install microspa-js
 
# or yarn 
yarn add microspa-js

Usage

import { registerApplications, start } from 'microspa-js';
 
registerApplications([
  {
    id: 'id of DOM element',
    name: 'app name',
    entry: 'html entry url',
    activityFn: location => {
      location.pathname.startsWith('/microspa');
    },
  },
]);
 
start();

Readme

Keywords

none

Package Sidebar

Install

npm i microspa-js

Weekly Downloads

2

Version

0.1.1

License

none

Unpacked Size

761 kB

Total Files

28

Last publish

Collaborators

  • jerryshen520