static site with `npm run generate` doesn't include styles unlike `npm run dev`

This issue has been tracked since 2023-03-02.


@nuxtjs/tailwindcss: v4.2.1
nuxt: v2.15.8

Reproduction Link

Github Repo
Vercel live deployment
Render live deployment

Steps to reproduce

  1. Clone the repo & install dependencies
  2. Run npm run build -> npm run generate -> npm run start

What is Expected?

The website is expected to build with all the styles as it does in npm run dev (screenshot below).

localhost_3000_ (1)

What is actually happening?

Generating the static website totally ignores styling that isn't vanilla css (only header and subheader font families from styles.css are present. Screenshot below)

localhost_3000_ (2)

sebrax wrote this answer on 2023-03-13

I was having the same issue while using version 4.2.1 and solved by upgrading to 6.4.0.

vinosamari wrote this answer on 2023-03-14

@sebrax Did same and it works like a charm. Thank you! Does this mean TW is slowly dropping support of Nuxt 2.x?

More Details About Repo
Owner Name nuxt-modules
Repo Name tailwindcss
Full Name nuxt-modules/tailwindcss
Language TypeScript
Created Date 2019-04-04
Updated Date 2023-03-29
Star Count 1285
Watcher Count 12
Fork Count 157
Issue Count 57


Issue Title Created Date Updated Date