Skip to content

Tailwind: NextJs production build removes styles #5187

Closed
@zawasp

Description

@zawasp

Describe the bug

When running a dev build, the default Primereact Tailwind style seems fine. However when doing a prod build, it's removed.
Dev build:
image

Prod build:
image

Reproducer

https://codesandbox.io/p/sandbox/dazzling-paper-7mmcnz

PrimeReact version

10.0.7

React version

18.x

Language

TypeScript

Build / Runtime

Next.js

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

Default Tailwind style should appear when doing a production build.

Metadata

Metadata

Assignees

Labels

Component: NextJSNextJS related issueComponent: TailwindTailwind specific issueResolution: WorkaroundIssue or pull request contains a workaround. It needs to be reviewed further by Core Team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions