An open API service indexing awesome lists of open source software.

https://github.com/georgiosdrivas/css-filter

NPM package that tracks unused CSS rules
https://github.com/georgiosdrivas/css-filter

Last synced: 10 months ago
JSON representation

NPM package that tracks unused CSS rules

Awesome Lists containing this project

README

          

## CSS Filter

![npm](https://img.shields.io/npm/dy/%40georgios-drivas%2Fcss-filter) ![GitHub](https://img.shields.io/npm/l/%40georgios-drivas%2Fcss-filter)

An npm package that checks HTML files for unused CSS rules.

# Installation

In the command run:

- npm install @georgios-drivas/css-filter

Add this script in your package.json file:

- "css-filter": "node ./node_modules/@georgios-drivas/css-filter/index.js"

Once it is installed, run the command:

- npm run css-filter -- /path-to-your-css-file /path-to-your-html-file

The results will be posted in the command line