css-purge icon indicating copy to clipboard operation
css-purge copied to clipboard

Output includes unwanted selectors

Open nburkard opened this issue 4 years ago • 0 comments

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?

nburkard avatar Mar 13 '20 13:03 nburkard