Compiled @keyframes
loses the space between css variables
#18497
Unanswered
Taib-Rabah
asked this question in
Help
Replies: 1 comment
-
Seems like a bug in Lightning CSS (playground) that Tailwind uses to transpile and minify in production. Might be related to parcel-bundler/lightningcss#976 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my Next.js + Tailwind CSS project, I defined the following CSS keyframes:
And implemented them in my component like this:
Everything is good in dev mode, but in production (
pnpm run build
), the compiled keyframes declaration loses the space between the CSS variables breaking the animation's expected behavior:Repo link: https://github.com/traflex-trash/tw-issue
Note: Only
page.tsx
andglobals.css
are modified after runningpnpm create next-app
Beta Was this translation helpful? Give feedback.
All reactions