PurgeCSS API

Purge unused css from a webpage and return only what's needed.

Endpoint
/api/purge
Parameters
  • html: raw string or the url of a webpage.
  • css: raw string or the url to the main css file.
Example
POST /api/purge

{
  "html": "RAW HTML HERE",
  "css": "RAW CSS HERE"
}
OR
POST /api/purge

{
  "html": "https://www.mojoactive.com",
  "css": "https://www.mojoactive.com/dist/custom-12345.min.css"
}