@poi/plugin-bundle-report

12.1.2 • Public • Published

@poi/plugin-bundle-report

This 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!

Install

yarn add @poi/plugin-bundle-report --dev

Usage

Activate it in config file:

// poi.config.js
module.exports = {
  plugins: [
    {
      resolve: '@poi/bundle-report',
      options: {}
    }
  ]
}

Add --bundle-report while building your app in production mode to get report:

poi --prod --bundle-report
# then you'll be automatically navigated to http://localhost:8888

Options

Options object for webpack-bundle-analyzer plugin.

LICENSE

MIT © EGOIST

Readme

Keywords

none

Package Sidebar

Install

npm i @poi/plugin-bundle-report

Weekly Downloads

6

Version

12.1.2

License

MIT

Unpacked Size

3.88 kB

Total Files

5

Last publish

Collaborators

  • egoist
  • poi-owner
  • rem