4 posts tagged with "tools"
- toolsFebruary 2, 2022 / 7 min read
webpack hot module replacement (HMR) principle
hot module replacement (HMR) is one of the most useful features webpack provides. It allows all types of modules to be updated at run time without a complete refresh. - toolsJanuary 20, 2022 / 3 min read
How to publish your component to npm
The front-end components are developed in javascript, packaged in Node.js and published to NPM. - toolsFebruary 10, 2021 / 7 min read
Analysis of the principle of module federation
Module federation is implemented via the `ModuleFederationPlugin` plugin provided natively by Webpack, which has two main concepts: Host (consuming other Remote) and Remote (being consumed by Host). Each project can be Host or Remote, or both. - toolsFebruary 4, 2021 / 3 min read
Use webpack5 module federation for code sharing across applications
When project A needs to share A component of Project B, both sides need to be consistent in subsequent iterations. There are two ways to do this