Skip to content

@Ffloriel Ffloriel released this Jan 31, 2020 · 77 commits to master since this release

Changes:

  • Asynchronous
import PurgeCSS from "purgecss";

const purgecssResults = await new PurgeCSS().purge({
    // options
});
  • Extractor is a function
content => content.match(/[\w-/:]+(?<!:)/g) || []
  • variables option to remove unused CSS variables
  • Drop support of NodeJS < 8
Assets 2
You can’t perform that action at this time.