github carbon-design-system/carbon-preprocess-svelte v0.12.6

latest release: v0.12.7
one hour ago

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 more past 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_COLOR turns color off and FORCE_COLOR on; CI and pipes get plain text. Under createCarbonOptimizer and optimizeCarbonBun, 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.

Don't miss a new carbon-preprocess-svelte release

NewReleases is sending notifications on new releases.