wojtekmaj / webpack-summary-compare

Generates a summary of differences between two Webpack summaries

Home Page:https://projects.wojtekmaj.pl/webpack-summary-compare/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI

webpack-summary-compare

Generates a summary of differences between two Webpack summaries. Can come in handy when we'd like to give a quick summary of the impact of our changes in Pull Request description.

Sample input & output

Input A

Hash: 2f168e1f7de11a759d50
Version: webpack 4.20.2
Time: 10000ms
Built at: 19.10.2018 13:24:53
                                 Asset     Size   Chunks             Chunk Names
another.bundle-2f168e1f7de11a759d50.js    1 MiB  another  [emitted]  another
removed.bundle-2f168e1f7de11a759d50.js  220 KiB  another  [emitted]  another
  index.bundle-2f168e1f7de11a759d50.js  550 KiB    index  [emitted]  index
  child.bundle-2f168e1f7de11a759d50.js  141 KiB    index  [emitted]  index
Entrypoint index = index.bundle.js
Entrypoint another = another.bundle.js

Input B

Hash: c926516bc19d8d5e9e4a
Version: webpack 4.20.2
Time: 9870ms
Built at: 19.10.2018 13:24:53
                                 Asset      Size   Chunks             Chunk Names
another.bundle-c926516bc19d8d5e9e4a.js   440 KiB  another  [emitted]  another
 newone.bundle-c926516bc19d8d5e9e4a.js  90.1 KiB  another  [emitted]  another
  index.bundle-c926516bc19d8d5e9e4a.js   550 KiB    index  [emitted]  index
  child.bundle-c926516bc19d8d5e9e4a.js   140 KiB    index  [emitted]  index
Entrypoint index = index.bundle.js
Entrypoint another = another.bundle.js

Output

## ✨ New assets
| Asset | Size |
| ----- | ---- |
| **newone.bundle-\[hash\].js** | 90.1 KiB |

## πŸ—‘οΈ Removed assets
| Asset | Size |
| ----- | ---- |
| **removed.bundle-\[hash\].js** | 220 KiB |

## ✏️ Changed assets
| Asset | Size |
| ----- | ---- |
| **another.bundle-\[hash\].js** | 1 MiB β†’ 440 KiB (-584 KiB; -57.03% β†˜) |
| **child.bundle-\[hash\].js** | 141 KiB β†’ 140 KiB (-1 KiB; -0.71% β†˜) |

## Summary
**Total size**: 1.89 MiB β†’ 1.19 MiB (-714.9 KiB; -36.95% β†˜)

**Time**: 10000 ms β†’ 9870 ms (-130 ms; -1.30% β†˜)

License

The MIT License.

Author

Wojciech Maj
kontakt@wojtekmaj.pl
https://wojtekmaj.pl

About

Generates a summary of differences between two Webpack summaries

https://projects.wojtekmaj.pl/webpack-summary-compare/

License:MIT License


Languages

Language:JavaScript 65.3%Language:JavaScript 26.6%Language:Less 6.6%Language:HTML 0.6%Language:HTML 0.6%Language:Shell 0.2%