Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove unused css classes [closed]

Tags:

css

I'm making template. In css file are many css classes, which are no longer used in the template. It takes a long time to find and remove them manually.

Is there any tool that will find and remove unused css classes?

like image 703
user3724896 Avatar asked Jan 11 '23 03:01

user3724896


1 Answers

Try Firefox extension Dust-Me

OR

you may also try Chrome Developer Tools

This Chrome developer tool has an Audits tab which can shows unused CSS selectors.

Run an audit > under Web Page Performance see Remove unused CSS rules

OR

http://unused-css.com/ tool explores your all pages and removes unused CSS.

like image 143
Naveen Kumar Alone Avatar answered May 18 '23 16:05

Naveen Kumar Alone