Skip to content

Instantly share code, notes, and snippets.

@kanavarora
kanavarora / bundleAnalysis.js
Last active June 7, 2019 08:24
Simple utility to track your bundle/chunk sizes with each release
/*
Utility to analyze bundle chunks over versions.
Assumes: webpack has already created the bundle summary json file -> stats.json
Parameters:
version: (Optional) a string that labels the current bundle with the version
provided and saves the summary in a csv file.
Output:
If run the first time, generates a csv file bundleAnalaysis.csv, which