mhy
  • Introduction
  • Basics
    • Installation
    • Usage
    • UI
    • Ecosystem
    • How does it work?
  • Tools
    • Built-ins
      • boot
      • config
      • dep
      • options
      • ui
    • Processes
      • eslint
      • jest
      • node
      • nodemon
      • prettier
      • standard-version
      • storybook-start
      • storybook-build
      • tsc
      • webpack
      • webpack-bundle-analyzer
      • webpack-dev-server
    • Configs
      • eslint
      • gitignore
      • jest
      • manifest
      • mhy
      • npmignore
      • prettier
      • storybook
      • typescript
      • webpack
  • IDE setup
    • WebStorm & PHPStorm
    • VSCode
  • Recipes and Examples
    • package.json overrides
    • Add your own
  • Others
    • FAQ
    • Help
    • Development of mhy
    • Suggest a library
Powered by GitBook
On this page
  • Default command
  • CLI Options
  • Examples
  • Default CLI
  • Analyze production bundle instead
  • With watcher

Was this helpful?

  1. Tools
  2. Processes

webpack-bundle-analyzer

  • Alias: wba

Default command

webpack-bundle-analyzer stats.json

CLI Options

https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-cli

Examples

Default CLI

mhy webpack-bundle-analyzer
# or
mhy wba

Analyze production bundle instead

mhy webpack-bundle-analyzer --mhy-env=prod
# or
NODE_ENV=production mhy webpack-bundle-analyzer

With watcher

mhy webpack -w
# or
mhy wp --watch
PreviouswebpackNextwebpack-dev-server

Last updated 3 years ago

Was this helpful?