Socket
Book a DemoInstallSign in
Socket

@relative-ci/webpack-bundle-stats

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@relative-ci/webpack-bundle-stats

Generate bundle report from the webpack stats data.

latest
npmnpm
Version
1.0.0-beta.11
Version published
Maintainers
1
Created
Source

Webpack Bundle Stats

webpack-bundle-stats version TravisCI badge Greenkeeper badge

Generate bundle report from the webpack stats data.

Demo - one job | Demo - multiple jobs

screenshot

Install

npm install -g @relative-ci/webpack-bundle-stats

or

yarn global add @relative-ci/webpack-bundle-stats

Configuration

Configure Webpack stats to output the necessary data:

{
  stats: {
    assets: true,
    entrypoints: true,
    chunks: true,
    modules: true
  }
}

More info

Usage

$ webpack-bundle-stats -h
Usage: webpack-bundle-stats OPTIONS [STATS_FILE]...

Options:
  --html         Save HTML report                      [boolean] [default: true]
  --json         Save JSON data                       [boolean] [default: false]
  --demo         Generate demo reports                          [default: false]
  -d, --out-dir  Output directory                            [default: "./dist"]
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]
$ webpack-bundle-stats --html --json __fixtures__/webpack-stats-0.json __fixtures__/webpack-stats-1.json
  ✔ Read Webpack stat files
  ✔ Gather data
  ✔ Generate reports
  ✔ Save reports

Reports saved:
- ./dist/report.html
- ./dist/report.json

Keywords

webpack

FAQs

Package last updated on 22 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts