1.2.0 • Published 3 years ago

mf-webpack-plugin v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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 plugin

  • Add "ngx-build-plus": "^8.1.1" to your project

  • Replace the placeholders in configs/* with your app specific values

  • UPdate 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 of ng build --watch)

  • Run mf:serve to serve the build generated earlier from your dist/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