webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.58k stars 488 forks source link

feat: allows deterministic reports #348

Closed eoingroat closed 4 years ago

eoingroat commented 4 years ago

Allows building reports deterministically; a la Deterministic Compilation / Reproducible Builds

For now, that consists of adding an option to remove the report generation time from the report title; making the report generation reproducible across time.

tests

Tests are included, they check builds are deterministic with the deterministic API option true, and non-deterministic with the option false.

why

I've adopted a zero-config (a la yarn 2) and fully reproducible artifact build and test strategy; which means I need to commit my reports into a form of version control.

thoughts

I was going to propose this as a default to deterministic, however it may be the case that users use the included timestamp to determine the recency of the report when developing, and thus defaulted to the existing behavior.

jsf-clabot commented 4 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Normal Gaussian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

eoingroat commented 4 years ago

Committed with wrong account