Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

poi-preset-webpackmonitor

1.0.0 • Public • Published

poi-preset-webpackmonitor

Monitoring webpack optimization metrics.

preview

Install

yarn add poi-preset-webpackmonitor --dev

Usage

Activate it in config file poi.config.js:

module.exports = {
  presets: [
    require('poi-preset-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

Keywords

none

install

npm i poi-preset-webpackmonitor

Downloadsweekly downloads

10

version

1.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar