-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purge does not purge ALL unused classes #2341
Comments
HTML elements are preserved by default, and since |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem:
After setting up a new project (Create React App) with TailwindCSS with Purge enabled, running
tailwind build ...
does not purge ALL unused classes (basically none should be used since it's a brand new CRA application). Config file is as follow:Produced CSS after
tailwind build
is at follow (truncated):None of the classes in the output css is used. The provided reproduction below is a Create React App but the same thing occurs for an Angular application setup.
Link to a minimal reproduction:
https://github.com/nartc/react-tailwind-purge-reproduce
Steps:
npm run build:tw
tailwind.output.css
fileThe text was updated successfully, but these errors were encountered: