Skip to content
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

feat: support webpack-bundle-analyzer with CLI #1838

Open
anshumanv opened this issue Sep 25, 2020 · 14 comments · Fixed by #1853
Open

feat: support webpack-bundle-analyzer with CLI #1838

anshumanv opened this issue Sep 25, 2020 · 14 comments · Fixed by #1853
Labels

Comments

@anshumanv
Copy link
Member

Is your feature request related to a problem? Please describe.
We can have an analyze flag which invokes webpack-bundle-analyzer as bundle information is crucial limiting size and determining potential bloats

Describe the solution you'd like
we can list it in peer dep and use the analyzer which the user has installed instead of shipping out of the box to keep package size low.

Describe alternatives you've considered

Additional context
/cc @evilebottnawi

@alexander-akait
Copy link
Member

Yes:

  • Put in peerDependenciesMeta with options
  • for the --analyze flag adding webpack-bundle-analyzer as a plugin
  • need implement schema for webpack-bundle-analyzer and read options from schema (can be done late)

@alexander-akait
Copy link
Member

need implement schema for webpack-bundle-analyzer and read options from schema (can be done late)

to respect built-in options

@webpack-bot
Copy link

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

@snitin315
Copy link
Member

Bump

@webpack-bot
Copy link

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

@snitin315
Copy link
Member

Bump

@webpack-bot
Copy link

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

@snitin315
Copy link
Member

Let's start working on next first before adding more fetures.

@webpack-bot
Copy link

Issue was closed because of inactivity.

If you think this is still a valid issue, please file a new issue with additional information.

@info-arnav
Copy link

Hi, can you please providde a basic idea on how to proceed with this

@info-arnav
Copy link

Hi, can you please providde a basic idea on how to proceed with this

Like the basic implimentation would be to create a plugin webpack-bundle-analyzer
adding a --analyze flag to automatically add the plugin
maybe save the analysed data in a file

can you tell me about how can i go about the analyzing part, like the webpack functions or data to be used

@info-arnav
Copy link

Hi, can you please providde a basic idea on how to proceed with this

Like the basic implimentation would be to create a plugin webpack-bundle-analyzer adding a --analyze flag to automatically add the plugin maybe save the analysed data in a file

can you tell me about how can i go about the analyzing part, like the webpack functions or data to be used

@alexander-akait @snitin315

@info-arnav
Copy link

So Ill then start reffering to https://github.com/webpack-contrib/webpack-bundle-analyzer

@info-arnav
Copy link

As per what I see, we already have a --analyze flag added, which loads the webpack-bundle-analyzer plugin. I will try to add the plugin to webpack itself and then load it with the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants