DEV Community

Discussion on: How to set up tailwindcss with create-react-app + jit feature

Collapse
 
jengaa profile image
ameyajangam22 • Edited

What do I have to do differently with craco ? I have enabled mode:"jit" in tailwind.config.js . How should I write the build script for that? Here is my current build script . What should I add?

dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
akov profile image
Ako • Edited

hm! it seems to work fine for me, I just created a repository and using craco instead of react-scripts, you can try and see if it works for you.
github.com/ako-v/cra-tailwindcss-j...
after building, serve the build folder using npm run servebuild and open http://localhost:3000 in your browser.