DEV Community

Discussion on: How to Remove Unused CSS

Collapse
 
bhadresharya profile image
Bhadresh Arya

What about the CSS that comes in use after some user interaction. I've tried gulp-uncss but it removes so many useful css like dropdowns, modals, popups, tooltips etc...

Collapse
 
93lucasp profile image
Luca Spezzano

It should work because your dropdowns, modals, popups, tooltips etc are in your HTML. It can cause problems when you add class dynamically.