tailwindcss-setup-examples
tailwindcss-setup-examples copied to clipboard
Add complete create-react-app example.
Hi @adamwathan,
This example is a bit more complete than the previous create-react-app one:
- This uses postcss instead of native cli tool, so more personalization.
- This handles watch mode.
- This ignores the generated file.
- There is example of usage of Tailwind in a react component.
- This also shows as a facultative example a way to use powerfully tailwind with React.
Hope you'll be happy with that. Matt'
EDIT : I just saw your comment on the other PR. For this setup example repo, I would not recommend using craco here, as it's quite considerate as a hack in the react community, and as any fork it's not necessarily updated.
We could just make a word about it with a link in the readme?
Thanks for this example! It's very useful. I wonder if it's worth using craco to use PostCSS + Tailwind with Create-React-app, instead of using the PostCSS CLI.
@Daniel15 As I said, for theses basic examples, I would not recommend using craco, as it's quite considerate as a hack in the react community and is not supported officially by react team.
As soon as you have convinced you're colleagues at Facebook to let us update the webpack config in CRA, (like in vue-cli or with craco), I swear I'll update the example! 😋