Skip to content
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] Tailwind CLI high CPU on bad css #15135

Open
dotfrag opened this issue Nov 23, 2024 · 1 comment
Open

[v4] Tailwind CLI high CPU on bad css #15135

dotfrag opened this issue Nov 23, 2024 · 1 comment
Labels

Comments

@dotfrag
Copy link

dotfrag commented Nov 23, 2024

What version of Tailwind CSS are you using?

4.0.0-beta.2

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

Tailwind CLI.

What version of Node.js are you using?

v22.11.0

What browser are you using?

Doesn't matter.

What operating system are you using?

Linux.

Reproduction URL

Steps in README.md:

https://github.com/dotfrag/tailwind-issue-repro

Describe your issue

Repro steps in repo README.

With the following CSS:

@import 'tailwindcss';

@theme {
  --font-sans: "Inter";
}

The node process is idling at 0.x CPU.

Then if you introduce bad css:

@import 'tailwindcss';

@theme {
  --font-sans: "Inter", theme('fontFamily.sans');
}

The node process CPU usage skyrockets to 20% causing 70C+ temps.

The CPU usage does not go down when removing the bad code.

@jane3144fit

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants