I struggled a lot to integrate Tailwindcss with create-react-app few months back while working on a pet-project. Since then I thought of creating a starter template out of it so that new projects can be easily bootstrapped with that.
Finally I created a starter template with cra + tailwindcss
.
https://github.com/WorkNTrack/create-react-app-tailwind-starter
It can be used to quickly get started with zero configurations. Production builds are enabled with purge
so that unused css won't be dumped in the production builds.
For info or how the integration is done, please follow this blog in which I have explained each of the steps.
https://blog.24x7dev.com/blog/tailwind-with-react/
Top comments (3)
Hi Akhil.
We encourage the entire article to be published on DEV.to (if you have proper rights), with a linkback if appropriate. Otherwise, we recommend original material, such as an original commentary on the article. From the Terms of Use:
Posts that are simply intended to encourage readers to view an external resource are discouraged.
Thank you.
On a different note Sung, the article is not incomplete here. The article completely justifies its title.
This article is about
React + Tailwind starter template
and not about how to create it. And I posted just the motivation behind writing that.The link that you found out to be violating the terms and conditions, is for someone who wants to know how to integrate it which is something in addition to the title.
Adding links to third-party blogs for more clarification shouldn't be violating the T&C.
I will just wait until you see this comment and then will delete this blog.
Thanks for the information.
FYI, I tried a lot to write it here but the Markdown that I use on my site doesn't work here. I tried tweaking it a lot couldn't make it work and finally had write a gist out of it.
If you find this article somehow misleading or unfair, I am okay to remove it from here completely