DEV Community

loading...

Discussion on: Nextjs TailwindCSS Typescript Starter

Collapse
akshay090 profile image
Akshay090

thanks for writing this post. I've the question that don't we need a script tag in package.json to build tailwind ?

Collapse
vuongddang profile image
Vuong Dang Author

Next.js compiles CSS using PostCSS out of the box. So we just have to customize postcss.config.js to include tailwindcss plugin. More info can be found here.

Hope that helps!

Collapse
akshay090 profile image
Akshay090

That's really cool.

Collapse
vuongddang profile image
Vuong Dang Author

if we integrate TailwindCSS to a project create with Create React App Blog post by Christopher, then we might need to install postcss-cli and create a script tag to run postcss ourself.