@poi/plugin-webpackmonitor

10.0.1 • Public • Published

plugin-webpackmonitor

Monitoring webpack optimization metrics.

preview

Install

yarn add @poi/plugin-webpackmonitor --dev

Usage

Activate it in config file poi.config.js:

module.exports = {
  plugins: [
    require('@poi/plugin-webpackmonitor')(options)
  ]
}

Each time you run poi build webpackmonitor will write stats to .monitor/stats.json, if you want to launch the dashboard in your browser, you can append --webpackmonitor flag to this command.

Options

pluginOptions

Type: object
Default:

{
  // Path to write stats file
  target: path.resolve('.monitor/stats.json'),
  // The cli flag --webpackmonitor
  launch: poi.argv.webpackmonitor
}

Options for webpack-monitor.

Note: You may add .monitor to .gitignore if you don't want to track it in your VCS.

License

MIT © EGOIST

/@poi/plugin-webpackmonitor/

    Package Sidebar

    Install

    npm i @poi/plugin-webpackmonitor

    Weekly Downloads

    0

    Version

    10.0.1

    License

    MIT

    Unpacked Size

    2.23 kB

    Total Files

    6

    Last publish

    Collaborators

    • egoist
    • poi-owner
    • rem