This is a preset for adding [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer) which could help you:
npm install @poi/plugin-bundle-reportThis is a preset for adding webpack-bundle-analyzer which could help you:
1. Realize what's really inside your bundle
2. Find out what modules make up the most of it's size
3. Find modules that got there by mistake
4. Optimize it!
``bash`
yarn add @poi/plugin-bundle-report --dev
Activate it in config file:
`js`
// poi.config.js
module.exports = {
plugins: [
{
resolve: '@poi/bundle-report',
options: {}
}
]
}
Add --bundle-report while building your app in production mode to get report:
`bash``
poi --prod --bundle-reportthen you'll be automatically navigated to http://localhost:8888
MIT © EGOIST