This tool scans a directory for CSS classes specified in a CSS file and thus helps you to find unused CSS classes.
yarn install
npm start -- --cssfile=path/to/cssfile --directory=path/to/folder/with/files
$ npm start -- --cssfile=/someProject/application.css --directory=/someProject/
> [email protected] 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
- Kevin Goedecke