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();

/microspa-js/

    Package Sidebar

    Install

    npm i microspa-js

    Weekly Downloads

    1

    Version

    0.1.1

    License

    none

    Unpacked Size

    761 kB

    Total Files

    28

    Last publish

    Collaborators

    • jerryshen520