Skip to content

Keep your (S)CSS files maintainable by running this script from times to times to detect unused CSS classes. (You will have to delete them manually though)

Notifications You must be signed in to change notification settings

philippzentner/unusedCSS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unusedCSS - Keep your (S)CSS files maintainable

PHP CLI script to detect unused CSS by walking through all your application files during development.

Why

There are a lot of tools that removes unused CSS during compilation/deployment. This tool outputs a txt-file so that you can manually clean up your (S)CSS files to keep files maintainable.

How

This script does not change anything. Adjust the $PATH variable in the unusedCSS.php file to your frontend-folder/web-application and run it via php unusedCSS.php and you'll get a file of unused CSS classes within the same folder.

Use -p=/path/to/app as parameter to use unusedSASS and unusedCSS from anywhere.

About

Keep your (S)CSS files maintainable by running this script from times to times to detect unused CSS classes. (You will have to delete them manually though)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages