Output webpack stats with webpack-cli

Step 1. Configure webpack stats options

// webpack.config.js
{
  stats: {
    assets: true,
    entrypoints: true,
    chunks: true,
    modules: true
  }
}

Step 2. Output webpack stats JSON file

webpack --mode=production --json artifacts/webpack-stats.json



Need help?Contact us via email, Twitter, or Github!