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

Using with Tailwind #1

Open
johanbrandhorst opened this issue Feb 25, 2021 · 6 comments
Open

Using with Tailwind #1

johanbrandhorst opened this issue Feb 25, 2021 · 6 comments

Comments

@johanbrandhorst
Copy link

Hi, thanks for this plugin! I'm wondering if this allows using esbuild with the tailwind CSS processor?

@martonlederer
Copy link
Owner

I have not tried it with tailwind css. If there's a postcss-plugin for it, than yes, just put it in the plugins option. If not, I can take a look, or you can also submit a pull request :)

@johanbrandhorst
Copy link
Author

I'm going to try it using https://tailwindcss.com/docs/installation#installing-tailwind-css-as-a-post-css-plugin as a guide, but I'm very new to this space.

@Zertz
Copy link

Zertz commented Mar 25, 2021

I confirm that it works! Here's an example.

It's slow as is becaue Tailwind is so large out of the box but I found switching to @tailwindcss/jit helps a lot.

@johanbrandhorst
Copy link
Author

@Zertz awesome, thanks for sharing, I also got it working as a postcss plugin but it was slowing down my build enough that I didn't care for it 😂. Thanks for the example, I will take a look!

@Zertz
Copy link

Zertz commented Mar 25, 2021

Yeah, without their new JIT plugin it's barely usable

@ferdicus
Copy link

why would you remove the example though 😭

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

4 participants