PurgeCSS API
Purge unused css from a webpage and return only what's needed.
Endpoint
/api/purge
Parameters
Example- html: raw string or the url of a webpage.
- css: raw string or the url to the main css file.
POST /api/purge
{
"html": "RAW HTML HERE",
"css": "RAW CSS HERE"
}ORPOST /api/purge
{
"html": "https://www.mojoactive.com",
"css": "https://www.mojoactive.com/dist/custom-12345.min.css"
}