-
In production mode my css file contains not used css classes (spin, ping ... and not used @media) How fix it?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
More information about your project would be helpful (config, CSS, etc). Are you ignoring code inside your CSS, something like this? /* purgecss start ignore */
@tailwind base;
@tailwind components;
/* purgecss end ignore */
@tailwind utilities; |
Beta Was this translation helpful? Give feedback.
-
This all works as expected so this is likely a configuration issue. Converting to a discussion but happy to help. |
Beta Was this translation helpful? Give feedback.
-
I FIX IT ! add @fullhuman/postcss-purgecss")({ keyframes: true}) postcss.config.js
|
Beta Was this translation helpful? Give feedback.
-
@adamwathan what do you think about a section in the docs pointing that even if no animation is used, they are included in the production build, unless specifically purged (eg. below)? @pruginkin you can do this within your Tailwind config without adding purge: {
content: ['./*.html'],
options: {
keyframes: true,
},
}, |
Beta Was this translation helpful? Give feedback.
I FIX IT ! add @fullhuman/postcss-purgecss")({ keyframes: true})
postcss.config.js