-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
V4 Minification Issue with ::after #15238
Comments
This is so awkward, so if I disable the minification in vite it works fine.
So I've used the npx @tailwindcss/upgrade@next to upgrade this project, I noticed he did not installed the @tailwindcss/vite extension.
But even if I install I get the same error. If I switch those tailwind classes for regular CSS I have no issues. Strange, I'll try to figure out . .btn-menu::after {
@apply relative text-neutral-400 hover:text-black dark:text-neutral-600 transition-colors;
}
.btn-menu::after {
@apply absolute -bottom-1.5 block h-0.5 w-0 bg-neutral-200 dark:bg-neutral-700 transition-all content-[''];
}
.btn-menu:hover::after {
@apply bg-black dark:bg-neutral-600 w-5;
} Having any of this classes is causing the issue. |
Not sure if it's related, but I also noticed some weird behavior around (Edit: moved to separate issue) |
Yeah the issue is with the postcss, Laravel is using postcss, so I'm pretty sure if you try that with the postcss with the default minification you'll find the same issue with the ::after elements. |
In v4 beta 1
I had this...
When I compile the npm run build using laravel and vite...
I get this error:
This was fine with v3, any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: