Repository navigation
Commit c3a7f01
authored
build(css): widen the CSS minifier comparison to 14 tools and 27 stylesheets (#21963)
* build(css): compare against four more CSS minifiers
esbuild and lightningcss gain target-aware arms, so `webpack+target` is read
against what a rival makes of the same browserslist rather than against its
untargeted default. cssnano's advanced preset and the Go `tdewolff/minify`
add two lineages the set did not cover.
* build(css): compare on seven more frameworks, and two more minifiers
The added stylesheets are chosen for what they exercise rather than for
popularity: PatternFly carries 2961 custom properties, Tabler 322 `color-mix()`
calls, Fomantic-UI 1986 KB of legacy prefixed CSS, and 98.css/Spectre/Shoelace/
Beer CSS cover shapes the set had none of. `@swc/css` and `crass` join the
tools, both of which refuse most real stylesheets — which is the row's point.
* build(css): measure what rewriting custom properties is worth
Every rival shortens a custom property's value unprompted, so a theme file
that is mostly custom properties compared webpack's untouched output against
their rewritten one. On Shoelace's light theme the arm closes a 656 byte gzip
gap and ends 16 bytes ahead of lightningcss.
* build: name the comparison packages cspell does not know
The frameworks and the Go minifier the CSS comparison installs.1 parent 473b19e commit c3a7f01
2 files changed
Lines changed: 104 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| 312 | + | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
| |||
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
| 450 | + | |
447 | 451 | | |
448 | 452 | | |
| 453 | + | |
449 | 454 | | |
450 | 455 | | |
451 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
| 76 | + | |
66 | 77 | | |
67 | 78 | | |
68 | 79 | | |
| |||
196 | 207 | | |
197 | 208 | | |
198 | 209 | | |
| 210 | + | |
199 | 211 | | |
| 212 | + | |
200 | 213 | | |
201 | 214 | | |
202 | 215 | | |
| 216 | + | |
203 | 217 | | |
204 | 218 | | |
205 | 219 | | |
206 | 220 | | |
207 | 221 | | |
| 222 | + | |
208 | 223 | | |
209 | 224 | | |
210 | 225 | | |
211 | 226 | | |
212 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
213 | 231 | | |
214 | 232 | | |
215 | 233 | | |
| |||
247 | 265 | | |
248 | 266 | | |
249 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
250 | 280 | | |
251 | 281 | | |
252 | 282 | | |
| |||
255 | 285 | | |
256 | 286 | | |
257 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
258 | 302 | | |
259 | 303 | | |
260 | 304 | | |
| |||
294 | 338 | | |
295 | 339 | | |
296 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
297 | 357 | | |
298 | 358 | | |
299 | 359 | | |
| |||
302 | 362 | | |
303 | 363 | | |
304 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
305 | 404 | | |
306 | 405 | | |
307 | 406 | | |
| |||
0 commit comments