Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I make headwind work on js files? #192

Open
JoshKasap opened this issue Aug 3, 2022 · 1 comment
Open

How do I make headwind work on js files? #192

JoshKasap opened this issue Aug 3, 2022 · 1 comment

Comments

@JoshKasap
Copy link

can someone help me get this working with js files. It looks like i'm supposed to use regex in settings.json file but

  1. I don't really understand regex
  2. it appears there already is some regex for JavaScript despite it seemingly not working.

in my js file i have some code like this.

let html = `
<div class="mr-2 bg-red-100 ml-3"></div>
<div class='mr-2 bg-red-100 ml-3'></div>
`

I would like the classes in their to be sorted. both if using single or double quotes. Is this possible and could someone help me get it working if so?

@hacknug
Copy link

hacknug commented Aug 4, 2022

You have a bunch of alternative regex on the issues. I'd take a look at the ones on #85 since those may be what you're looking for 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants