@redext/micro
v0.0.1-staging-212
Published
Blazing fast, simple and complete solution for micro frontends
Downloads
172
Readme
@redext/micro
Blazing fast, simple and complete solution for micro frontends
Installation
npm install -s @redext/micro
or
yarn add @redext/micro
Use It
import { registerMicroApp, registerMicroComponent } from '@redext/micro';
registerMicroApp({
orgName: '@redext-micro', // option
name: 'demo',
activePath: 'micro',
container: '#microfrontend',
entry: 'http://localhost:5000',
// loadScriptPath: '/root-config.jsx',
isHash: true,
// isProduction: true
});
registerMicroComponent({
orgName: '@redext-micro', // option
name: 'component',
activePath: 'micro',
container: '#micro-component',
entry: 'http://localhost:5000/components/blocks/MicroDemo',
// loadScriptPath: '/root-config.jsx',
isHash: true,
// isProduction: true
});