https://github.com/kgoedecke/unused-css-parser
A checker that finds unused CSS classes in files and displays them.
https://github.com/kgoedecke/unused-css-parser
clean-code css php unusedcss
Last synced: about 2 months ago
JSON representation
A checker that finds unused CSS classes in files and displays them.
- Host: GitHub
- URL: https://github.com/kgoedecke/unused-css-parser
- Owner: kgoedecke
- Created: 2018-07-12T01:12:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T01:48:54.000Z (almost 8 years ago)
- Last Synced: 2025-04-02T03:46:57.816Z (about 1 year ago)
- Topics: clean-code, css, php, unusedcss
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unused-css-parser
This tool scans a directory for CSS classes specified in a CSS file and thus helps you to find unused CSS classes.
## Usage
- `yarn install`
- `npm start -- --cssfile=path/to/cssfile --directory=path/to/folder/with/files`
## Example Output
```
$ npm start -- --cssfile=/someProject/application.css --directory=/someProject/
> unused-css-parser@1.0.0 start /workspace/unused-css-parser
> node index.js "--cssfile=/someProject/application.css --directory=/someProject/"
Scanning for .non-existing-class
Scanning for .form-control
Your class was found in file: /someProject/inc/shortcodes.php
Scanning for .header__icon
Your class was found in file: /someProject/file1.php
Your class was found in file: /someProject/file2.php
Your class was found in file: /someProject/dir/file3.php
Your class was found in file: /someProject/dir/subdir/file4.php
```
## Copyright
- Kevin Goedecke