Skip to content
This repository was archived by the owner on Mar 6, 2020. It is now read-only.

Consensus on how to use tailwind with create-react-app? #336

Open
acomito opened this issue Sep 25, 2019 · 3 comments
Open

Consensus on how to use tailwind with create-react-app? #336

acomito opened this issue Sep 25, 2019 · 3 comments

Comments

@acomito
Copy link

acomito commented Sep 25, 2019

I'm just getting around to trying tailwind. I have a CRA application. I see several articles on the subject, but I'm not sure if there is a current consensus?

Some articles I've found:

@taylorbryant
Copy link

@pedroalmeida415
Copy link

I've been trying to use tailwind on my CRA project for the last 6 hours and still couldn't figure out a way to get it working properly using postCSS + tailwind + purgeCSS (which is needed if you dont want useless, heavy styles on your production version).
Would be really good to have a ready-to-go template that works out of the box

@pedroalmeida415
Copy link

pedroalmeida415 commented Feb 25, 2020

Ok, literally 5 minutes after i posted the past comment i found a template for CRA that used Tailwind in the P-E-R-F-E-C-T way i wanted, so i'll leave it here just in case that someone who is struggling to get it going - like me - can run the command and go straight into coding!

Link: https://www.npmjs.com/package/cra-template-tailwindcss
OR
just throw this command on your terminal: npx create-react-app --template tailwindcss

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

No branches or pull requests

3 participants