Skip to content

Tailwindcss 4.1.7 is too slow #18101

@ameerhamzanawaz

Description

@ameerhamzanawaz

What version of Tailwind CSS are you using?
^4.1.7

What build tool (or framework if it abstracts the build tool) are you using?

"@tailwindcss/vite": "^4.1.7",
"vite": "^6.3.5"

What version of Node.js are you using?

v22.12.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

A Tailwind Play link or public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.

A reproduction is required when filing an issue — any issue opened without a reproduction will be closed and you'll be asked to create a new issue that includes a reproduction. We're a small team and we can't keep up with the volume of issues we receive if we need to reproduce each issue from scratch ourselves.

Describe your issue

Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead.

Nothing fancy, i'm using Laravel 12, and tailwindcss v4, and it's taking mints more than 5 mints to load app.css file, if i remove @tailwindcss it's super fast even add/removing 'source' isn't solving the problem:

@import "tailwindcss";
/*Scan for utilities*/
@source "../views";

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions