npm.io
0.1.1 • Published 4 years ago

@microf/vue-host

Licence
Version
0.1.1
Deps
0
Size
9 kB
Vulns
0
Weekly
0
Stars
43

@microf/vue-host

A Vue.js plugin to create a micro-frontend application.

installation

npm i --save-dev @microf/vue-host
usage
import { createMicroFrontendHost } from '@microf/vue-host';
import { router } from './my-router-instance';

const microFrontendPlugin = await createMicroFrontendHost({
  router,
  apps: [
    { url: 'http://localhost:3334' },
    { url: 'http://localhost:3335' },
  ]
});

// don't forget:
app.use(microFrontendPlugin);

That's (sort of) it.