0.0.2 • Published 4 years ago
craco-mfsu v0.0.2
Craco MFSU Plugin
This is a craco plugin that to speed up project builds through federation modules.
Supported Versions
craco-mfsu is tested with:
- react-scripts:
^5.0.0 - @craco/craco:
^6.4.0
Installation
First, follow the craco Installation Instructions to install the craco package, create a craco.config.js file, and modify the scripts in your package.json.
Then install craco-mfsu:
$ yarn add --dev craco-mfsu
# OR
$ npm install --dev craco-mfsuUsage
Here is a complete craco.config.js configuration file that adds MFSU to create-react-app:
const CracoMFSUPlugin = require('craco-mfsu');
module.exports = async function () {
await CracoMFSUPlugin.init();
return {
plugins: [
{ plugin: CracoMFSUPlugin }
],
};
};And you need to add in the .gitignore file:
.mfsu