heybourn / headwind

An opinionated Tailwind CSS class sorter built for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
MIT License
1.39k stars 44 forks source link

classRegex not working with PHP files. #176

Closed heyjoe1984 closed 2 years ago

heyjoe1984 commented 2 years ago

Thank you for making this package.

I have the following classRegex I use with the tailwind extension:

"tailwindCSS.experimental.classRegex": [
    "class\\(([^)]*)\\)",
],

This works great in my Laravel blade PHP files.

However, I tried using the headwind class regex and it doesn't work:

"headwind.classRegex": {
    "php": "class\\(([^)]*)\\)",
},

The tailwind classes are never sorted. Any tips on how I can make this work?

heyjoe1984 commented 2 years ago

Nevermind it works, I just had to reload VS Code for it to kick in.