mf-webpack-plugin
v1.2.0
Published
Building microfrontends
Readme
Microfrontend webpack plugin
Installation
npm install mf-webpack-plugin --devWhat to do next ?
From the root folder of your project
Run
npm installto install the dependencies added by the pluginAdd
"ngx-build-plus": "^8.1.1"to your projectReplace the placeholders in
configs/*with your app specific valuesUPdate app.component selector to app name
How to use ?
You will notice three new scripts in your package.json
mf:serve , mf:build:watch andmf:build
To run locally (Dev)
Run
mf:build:watchto build your project and watch for changes (equivalent ofng build --watch)Run
mf:serveto serve the build generated earlier from yourdist/appfolder
To generate a mf shell app compatible build
- Run
mf:buildto generate a build that can be used by the microfrontend Shell app
