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

one hour ago

carbon-preprocess-svelte 0.14.1 prunes Carbon's CSS in about a third of
the time, by reading only the Carbon stylesheets a build bundles.

Performance

  • The plugins and createCarbonOptimizer, and so optimizeCarbonBun,
    read only the Carbon stylesheets a build bundles as modules of their
    own, where 0.14.0 parsed all 19 of Carbon 0.114's to learn what Carbon
    defines (a2b7eda, #341).
    Setting up the optimizer and pruning white.css for one Button
    takes 36.7 ms, where it took 103.9 ms (CI's 4-core AMD EPYC, median).
    The CSS is the same.
    The CLI, optimizeCarbonCss, and a build that pulls in Carbon's CSS
    with a CSS @import still read all 19.

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

NewReleases is sending notifications on new releases.