Uncss

Use this skill when the user wants to remove unused CSS from stylesheets by analyzing the actual HTML or templates used in their project.

javimosch a28b697 793 B Updated

File contents

UnCSS Plugin

UnCSS removes unused CSS rules by scanning HTML/JS templates against stylesheets.

Usage Examples

  • "remove unused CSS from styles.css based on index.html"
  • "purge unused CSS across multiple HTML pages"
  • "generate a lean CSS file for production"
  • "analyze CSS coverage across templates"

Installation

npm install -g uncss

Key Features

  • Unused CSS rule removal
  • HTML/JS template scanning
  • Multiple page/file support
  • PhantomJS and Puppeteer backends
  • CSS file size reduction
  • Production-ready lean CSS generation
  • Media query preservation
  • Ignored selector configuration

javimosch/supercli/tree/main/plugins/uncss/skills/quickstart commit a28b6979f5

Frequently asked questions

npx skillmds@latest add javimosch/uncss