peterbe / mincss

Tool for finding out which CSS selectors you're NOT using.
https://peterbe.github.io/mincss/
BSD 3-Clause "New" or "Revised" License
855 stars 92 forks source link

Save css-rules added to html-dom from javascript (like addClass() jquery function) #42

Closed dimti closed 7 years ago

dimti commented 8 years ago

Hello

mincss work awesome. And for full automatic process - me need save css rules, when added from javascript. Example: $elementLI.addClass('active')

  1. It possible?
  2. How true way for this reason?
  3. How i can help with that?
peterbe commented 7 years ago

It's sadly poorly documented but yes there is a way. See https://github.com/peterbe/mincss#ignore-css