Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Using Tailwind CSS with CRA #46

Open
agneym opened this issue Nov 24, 2019 · 4 comments
Open

Using Tailwind CSS with CRA #46

agneym opened this issue Nov 24, 2019 · 4 comments

Comments

@agneym
Copy link

agneym commented Nov 24, 2019

For a recent project, I created a fork of React Scripts and fetches from a tailwind css template pushed to npm.

It can be used with:

npm init react-app folder-name --scripts-version=@agney/rs-tailwind --template=tailwind

Requires @next for now, since some fixes for template are not on major release
With the release of 3.3.0, this is now directly supported.

I was wondering if the repositories could be moved here for better maintanence and visiblity.

@kaisheng1
Copy link

Hi, this is a really helpful template so far I can find. However, can you share how you build this template, cause I'm wondering if I can do the same thing.

@kaisheng1
Copy link

Found a brilliant template here: https://github.com/GeoffSelby/cra-template-tailwindcss. Check this repo if you would. I still want to know how you built your own template though.

@agneym
Copy link
Author

agneym commented Feb 3, 2020

@kaisheng1 The template you linked to uses a package named craco to customise the CRA from the outside.
Mine uses a custom package that is self made: create-react-app-tailwind that is forked from create-react-app which is customised to include tailwind and postcss.

Auth0 has a nice tutorial on how to customise one on your own.

@kaisheng1
Copy link

Yeah, I was just wandering around and find the best way to do stuff. Would be really cool to make my own custom package, if it's necessary.

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

2 participants