+12
-4
@@ -277,2 +277,13 @@ #!/usr/bin/env node | ||
| // Detail (what was skipped, and why) prints before the counts—so a long | ||
| // skipped list can't push the outcome off-screen and out of scrollback, | ||
| // the same order report mode already uses for its own skipped list | ||
| if (skipped.length) { | ||
| log(styleText('yellow', `${skipped.length} duplicate group${skipped.length !== 1 ? 's' : ''} considered unsafe to auto-merge:`)); | ||
| for (const item of skipped) { | ||
| log(formatSkippedLine(item, skippedAggressive)); | ||
| } | ||
| log(''); | ||
| } | ||
| const skippedNote = skipped.length ? ' (considered unsafe to auto-merge)' : ''; | ||
@@ -284,9 +295,6 @@ if (withheld) { | ||
| } | ||
| for (const item of skipped) { | ||
| log(formatSkippedLine(item, skippedAggressive)); | ||
| } | ||
| if (applied.length) { | ||
| log(`\n${formatBytesSummary(bytes)}`); | ||
| if (bytes.saved < 0) { | ||
| log(styleText('yellow', `Note: this consolidation makes the file ${formatBytesShare(bytes)} bigger, not smaller—the merged selector list costs more than the removed declaration(s) save. Still worth doing for maintainability (using each declaration just once); skip \`--fix\` here if you care more about transfer size.`)); | ||
| log(styleText('yellow', `Note: This consolidation makes the file ${formatBytesShare(bytes)} bigger, not smaller—the merged selector list costs more than the removed declaration(s) save. Still worth doing for maintainability (using each declaration just once); skip \`--fix\` here if you care more about transfer size.`)); | ||
| } | ||
@@ -293,0 +301,0 @@ if (!isStdin) log(`Wrote ${label}`); |
+1
-1
@@ -63,3 +63,3 @@ { | ||
| "types": "src/index.d.ts", | ||
| "version": "1.2.0" | ||
| "version": "1.2.1" | ||
| } |
143535
0.29%2318
0.3%