Skip to content

Small python script for web development. Find div classes inside a projects html or js files and match them against the projects css files. Works well with jQuery.

Notifications You must be signed in to change notification settings

michaelzm/python-css-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-css-cleaner

Small python script for web development.

Will search all html, css and js files for div classes without functionality.

Features:

  • find css classes without matching html div classes
  • find div classes without matching css classes or js functions
  • ignore folders or files for the script

Works well with jQuery functions inside js files.

Run the script inside the root directory of your project and input folders/files you wish to ignore.

Will create a report.txt containing all unused classes.

Use pyhon3

Start the script with "python compare.py"

alt text

About

Small python script for web development. Find div classes inside a projects html or js files and match them against the projects css files. Works well with jQuery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published