Tailwind CSS not being bundled in static export #23195
-
What version of Next.js are you using?10.0.8 What version of Node.js are you using?12.21.0 What browser are you using?Electron / Chromium What operating system are you using?Windows / Linux How are you deploying your application?next export Describe the BugNext only correctly bundles / builds Tailwind css for dev / if next js is run as a server. it appears to fail to correctly export tailwind styles in the static export with no errors. Expected BehaviorI would expect Tailwind CSS to work with the static export like it does in dev To ReproduceDownload the Next JS & Tailwind CSS example template. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there |
Beta Was this translation helpful? Give feedback.
-
this turned out to be an issue with tailwinds config. if you use the ./src/pages file tree like me then the tailwind css dosent generate properly. |
Beta Was this translation helpful? Give feedback.
this turned out to be an issue with tailwinds config. if you use the ./src/pages file tree like me then the tailwind css dosent generate properly.
get your purge looking like this
purge: ["./src/pages/**/*.{js,ts,jsx,tsx}", "./src/components/**/*.{js,ts,jsx,tsx}"]