Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Add bundleanalyzer config and webpack plugin #1381

Closed
wants to merge 19 commits into from
Closed

Conversation

nerrad
Copy link
Contributor

@nerrad nerrad commented Dec 13, 2019

I recently added bundlewatch in #1365, however I noticed that it's detail urls are really long, and it doesn't seem to be comparing changes against master (which is what we want). While browsing the bundlewatch issues I came across a reference to a new service called bundle-analyzer (https://bundle-analyzer.com/) that seems like it might work better so I'm giving it a try.

Some notes:

  • It uses a webpack plugin.
  • I have it configured so the plugin is only implemented when there is the BUNDLE_ANALYZER_TOKEN defined in the environment (so we're not deploying any production code built through this plugin). Travis is the only environment in which this plugin is then used by default.

Note: This will be nice if it works, but with the webpack plugin it creates one build in the bundle-analyzer ui for each webpack configuration (so for every pull that's 5 builds). I've asked a question in their repo on whether that will result in multiple checks added to a pull or not (if yes, then 👍 , if no then 👎 ).

@nerrad nerrad requested a review from a team December 13, 2019 22:19
@nerrad nerrad added the tools Used for work on build or release tools. label Dec 13, 2019
@nerrad nerrad self-assigned this Dec 13, 2019
@nerrad
Copy link
Contributor Author

nerrad commented May 12, 2020

Can close this now that we're using the bundlesize github action

@nerrad nerrad closed this May 12, 2020
@ralucaStan ralucaStan deleted the add/bundle-analyzer branch March 2, 2021 14:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tools Used for work on build or release tools.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant