rbtech / css-purge

A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.
http://rbtech.github.io/css-purge
MIT License
125 stars 19 forks source link

Output includes unwanted selectors #46

Open nburkard opened 4 years ago

nburkard commented 4 years ago

This tool is great! I am using it with Gulp. I have a very small HTML file that I am running the purge against. There is no <a> element in it. However the output includes CSS with the a selector. Upon troubleshooting, I found this happens when there is the word "a" inside of a div tag. Just plain text, like "I pet a small dog". The tool see the word "a" and thinks it is an element and outputs CSS with the selector "a". Likewise for the word "small", etc. I am hoping this is an easy fix?