mf-webpack-plugin
v1.2.0
Published
Building microfrontends
Downloads
2
Readme
Microfrontend webpack plugin
Installation
npm install mf-webpack-plugin --dev
What to do next ?
From the root folder of your project
Run
npm install
to 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:watch
to build your project and watch for changes (equivalent ofng build --watch
)Run
mf:serve
to serve the build generated earlier from yourdist/app
folder
To generate a mf shell app compatible build
- Run
mf:build
to generate a build that can be used by the microfrontend Shell app