-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: add webpack bundle analyzer #2359
WIP: add webpack bundle analyzer #2359
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions. |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
@themre looks like it started up a server which it expected the user to terminate, as there was no user the build timed out. |
@themre judging from the docs here https://github.com/th0r/webpack-bundle-analyzer#installation-and-usage
maybe you can use
? |
An alternative would be using source-map-explorer. Its super simple to add, it doesn't auto-run as part of webpack instead you manually run when you want to see the bundle makeup, and its more generic and can be used in non-webpack projects. Ninja edit: Looks like someone has add it with #1641 CRA only need sone of there two PRs as they both do the same thing. |
I don't think we'll be merging this considering tools like |
Based on #798 I would like to propose to add some bundle analyzer into CRA. I would however like to put it into some conditional scripts or pass some arguments into build script, like:
const addAnalyzer = process.argv.indexOf('--stats') !== -1;
.