Webpack-bundle-analyzer: webpack-cli v4 doesn't have --profile option

Created on 23 Dec 2020  路  1Comment  路  Source: webpack-contrib/webpack-bundle-analyzer

Issue description

webpack-cli v4 doesn't seem to have a --profile option anymore when working with webpack 4, and the --profile option with webpack 5 seems to have changed definition.

https://github.com/webpack/webpack-cli/blob/master/packages/webpack-cli/README.md

  --profile                                                   Capture timing information for each module.

Is there an updated way to capture a json stats file that we need to update the README.md of this project with?

Technical info

System:
OS: macOS 11.0.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 1.34 GB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.8 - ~/.nvm/versions/node/v14.15.0/bin/npm
npmPackages:
case-sensitive-paths-webpack-plugin: ^2.1.2 => 2.2.0
copy-webpack-plugin: ^6.3.2 => 6.3.2
nodemon-webpack-plugin: ^4.3.2 => 4.3.2
tsconfig-paths-webpack-plugin: ^3.2.0 => 3.2.0
webpack: ^4.41.5 => 4.41.5
webpack-bundle-analyzer: ^4.3.0 => 4.3.0
webpack-cli: ^4.2.0 => 4.2.0
webpack-manifest-plugin: 2 => 2.0.4
webpack-node-externals: ^2.5.2 => 2.5.2

Community help wanted Documentation

Most helpful comment

I've gotten it to work again by swapping --profile --json to --stats=detailed --json but I'm not sure if that's the canonical way of doing it.

>All comments

I've gotten it to work again by swapping --profile --json to --stats=detailed --json but I'm not sure if that's the canonical way of doing it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

s524797336 picture s524797336  路  8Comments

valscion picture valscion  路  6Comments

musso picture musso  路  10Comments

muuvmuuv picture muuvmuuv  路  3Comments

bregenspan picture bregenspan  路  9Comments