tailwind
Unanswered
Giant panda posted this in #help-forum
Giant pandaOP
help me please offline tailwind next js not inluce next build , manual coding rendering tailwind
"build": "npx tailwindcss build src/app/globals.css -o public/tailwinds.css && next build",
"build": "npx tailwindcss build src/app/globals.css -o public/tailwinds.css && next build",
3 Replies
@Giant panda help me please offline tailwind next js not inluce next build , manual coding rendering tailwind
"build": "npx tailwindcss build src/app/globals.css -o public/tailwinds.css && next build",
why do you set up the build step for tailwind separately? set tailwind up with postcss according to the official guide https://tailwindcss.com/docs/guides/nextjs
(
(
create-next-app should set it all up for you)Giant pandaOP
I don't want to use run dev because I want to build static, tailwind works runtime in next js, when I next build tailwind it doesn't include
follow the official guide, it will work for any use case of nextjs, including static builds