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 Updated 57 repo stars

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 commit a28b6979f5

Frequently asked questions

npx get-skill add javimosch/uncss