Skip to content

Check which CSS selectors are being used in your HTML file and remove them automatically.

License

Notifications You must be signed in to change notification settings

axesve/unused-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unused-CSS

Web based system, no dependencies, no installation all you need is a browser and about 1 minute.
Scan given HTML and CSS file(s) for selectors that are unused in the HTML file.
You can put in multiple files for larger projects.

Link

Currently the project does not have a domain, but you can access it, HERE

Known issues

This will not look at Keyframes and programmatically added Elements

Cleaned CSS code needs to be run in a CSS beautifier for it to look nice, would like to get this solved.

Contributing

Feel free to contribute and improvements you've made! Please see todo.txt for full TODO list!

Authors

  • Axel Svensson - Initial work - axesve

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Some of the functions such as removeA() and removeDuplicates() are taken from stackoverflow, I have lost the Solution links so if you are one of the authors and want credit please contact me.

About

Check which CSS selectors are being used in your HTML file and remove them automatically.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published