apvarun / tailwindcss-analysis

Analyse the TailwindCSS classes used in your application

Home Page:https://tailwindcss-analysis.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Add occurrence counts

bb opened this issue · comments

It would be great to know if a specific selector was used very often or only once or twice. Of course searching that in code may differ wildly from actual usage on a rendered page because of components etc., but still a good help. The number could be (optionally) added into the badges with a small font.

Here's how I currently do that using ripgrep (manually for each prefix): rg -N -I --only-matching "rounded-[\w/-]+" | sort | uniq -c which results in something like:

   2 rounded-b-md
   4 rounded-box
   9 rounded-full
   3 rounded-lg
  25 rounded-md
   2 rounded-t-xl
   6 rounded-xl