This repository was archived by the owner on Apr 6, 2021. It is now read-only.
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
Arbitrary values with commas don't work in production builds in Next.js #45
Description
Hey! First and foremost, thank you for Tailwind and all the content surrounding it. It's amazing and your work is greatly appreciated. And @tailwindcss/jit
is just... wow. 😍
I took JIT for a spin and noticed at least one class family (grid-cols-
) is not working in production builds, even though it works in development mode.
For example:
function Home() {
return (
<div className="px-96">
<main className="grid grid-cols-[1fr,128px] gap-x-4 items-center p-8">
<div className="bg-blue-400">Big column</div>
<div className="bg-gray-400">Small column</div>
</main>
</div>
)
}
export default Home;
Development:
.grid-cols-\[1fr\,128px\] {
grid-template-columns: 1fr 128px;
}
Production:
(no rules applied for grid-cols-[1fr,128px]
class)
Full reproduction with Next.js: https://github.com/wKovacs64/tw-jit-next/tree/issue-45
Any thoughts? Thanks!
Metadata
Metadata
Assignees
Labels
No labels