zignd / HTML-CSS-Class-Completion

:chocolate_bar: Visual Studio Code extension that provides CSS class name completion for the HTML class attribute based on the CSS files in your workspace
https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion
MIT License
253 stars 83 forks source link

Switch parser to PostCSS to support additional syntax in CSS files #270

Open itsMapleLeaf opened 4 years ago

itsMapleLeaf commented 4 years ago

Previously, the extension failed to pick up classes from files that used non-standard CSS syntax, such as @apply from tailwind. This PR changes the extension to use PostCSS as the parser instead.

This is pretty quick and dirty, and I only changed enough to get it working for my use case. I'm open to additional changes if needed