+6
-6
@@ -507,3 +507,3 @@ #!/usr/bin/env node | ||
| function formatSavingsCell(saved, before) { | ||
| if (saved === 0) return `${formatSize(0)} (0.0%)`; | ||
| if (saved === 0) return `${formatSize(0)} (0%)`; | ||
| const sign = saved >= 0 ? '-' : '+'; | ||
@@ -777,3 +777,3 @@ const percent = before ? (Math.abs(saved) / before) * 100 : 0; | ||
| const REPORT_LEGEND = 'Legend: -f: --fix, -s: --savings-only, -a: --aggressive'; | ||
| const REPORT_LEGEND = 'Legend: -f: --fix, -a: --aggressive, -s: --savings-only'; | ||
@@ -819,3 +819,3 @@ async function processCss(css, targetOptions, { isStdin, label, multi }) { | ||
| // 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, | ||
| // 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 | ||
@@ -900,6 +900,6 @@ logSkippedDetail(log, skipped, skippedAggressive); | ||
| // Findings above don't distinguish safe from unsafe—without this, a | ||
| // Findings above don’t distinguish safe from unsafe—without this, a | ||
| // duplicate group that `--fix` would just skip (see its own safety | ||
| // checks) reads as if nothing follows from it at all, when there’s a | ||
| // concrete, explainable reason it wasn't offered as a `--fix` win | ||
| // concrete, explainable reason it wasn’t offered as a `--fix` win | ||
| logSkippedDetail(console.log, passDefault.skipped, skippedWithAggressive(passAgg)); | ||
@@ -1090,3 +1090,3 @@ | ||
| // (skipped as unsafe, or withheld by `--savings-only`) does to the exit | ||
| // code. A file that couldn't be read or parsed is a real failure, and | ||
| // code. A file that couldn’t be read or parsed is a real failure, and | ||
| // stays one regardless of the flag. | ||
@@ -1093,0 +1093,0 @@ if (result.exitFailure && !(exitZero && !result.errored)) failed = true; |
+1
-1
@@ -64,3 +64,3 @@ { | ||
| "types": "src/index.d.ts", | ||
| "version": "1.6.0" | ||
| "version": "1.6.1" | ||
| } |
+1
-1
@@ -34,3 +34,3 @@ # CSS Dedup, the CSS Declaration Deduplicator | ||
| 1 (1) -10 B (-15.6%) -10 B (-15.6%) -10 B (-15.6%) -10 B (-15.6%) | ||
| Legend: -f: --fix, -s: --savings-only, -a: --aggressive | ||
| Legend: -f: --fix, -a: --aggressive, -s: --savings-only | ||
| ``` | ||
@@ -37,0 +37,0 @@ |
+1
-1
| // Selectors matching these patterns are excluded from duplicate detection and | ||
| // consolidation by default. Grouping a vendor-prefixed pseudo-class/element | ||
| // into a shared selector list is risky: browsers that don't recognize it can | ||
| // into a shared selector list is risky: Browsers that don’t recognize it can | ||
| // drop the entire rule, not just that one selector. Legacy hacks that rely on | ||
@@ -5,0 +5,0 @@ // a selector being invalid/valid in specific browsers have the same problem. |
196845
0