Features
-
the build's pruning prints as one aligned summary instead of a padded block per stylesheet: a row per stylesheet, largest savings first, folded into
+ N morepast five, and a total when there's more than one.carbon-preprocess-svelte: rewrote 37 Carbon components and pruned their CSS assets/index-x3k9Qa.css 849.8 kB → 90.1 kB -89%With several stylesheets:
carbon-preprocess-svelte: pruned Carbon CSS _app/immutable/assets/0.4SMrfU.css 772.5 kB → 27.0 kB -96% _app/immutable/assets/1.gpmwPW.css 102.1 kB → 12.1 kB -88% _app/immutable/assets/2.Dpc4wG.css 65.0 kB → 7.3 kB -89% _app/immutable/assets/3.pni43W.css 46.7 kB → 6.4 kB -86% _app/immutable/assets/4.UJSZS5.css 35.9 kB → 4.6 kB -87% + 7 more 140.6 kB → 17.2 kB -88% ──────────────────────────── 12 stylesheets 1,162.9 kB → 74.5 kB -94%In a terminal it's colored, with no new dependency: dim paths and hashes, green percentages, a bold total.
NO_COLORturns color off andFORCE_COLORon; CI and pipes get plain text. UndercreateCarbonOptimizerandoptimizeCarbonBun, the header says how many Carbon components were rewritten, in place of svelte-prune's sentence at the start of the build.
If a script parsed the old Optimized <file> / Before: / After: lines, it needs to read the rows instead.