heybourn / headwind

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

Support for other file extensions? #117

Open pikeas opened 3 years ago

pikeas commented 3 years ago

Is your feature request related to a problem? Please describe. For .svelte files, headwind runs via shortcut but not on save.

Describe the solution you'd like Headwind should be configurable on a per-language basis. Specifically for Svelte, <style> tags should use the CSS regex (eg, support @apply), HTML template should use the HTML regex (standard class="..."), and Javascript/Typescript <script> should use the Javascript/Typescript regex (not as important, useful when using a CSS-in-JS solution).