Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

CLI build not loading config file #17884

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

Closed
KutnerUri opened this issue May 5, 2025 · 0 comments
Closed

CLI build not loading config file #17884

KutnerUri opened this issue May 5, 2025 · 0 comments

Comments

@KutnerUri
Copy link

What version of Tailwind CSS are you using?

"@tailwindcss/cli": "4.1.5",
"tailwindcss": "4.1.5",

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

CRA 5.

What version of Node.js are you using?

v20.10.0

What browser are you using?

N/A

What operating system are you using?

MacOS

Reproduction URL

project.zip
expected - pnpm run build:tw to fail because of the error.
actual - just passes

Describe your issue

When running Tailwindcss CLI tool, it doesn't pick up the tailwind.config.js file.
throwing errors, invalid syntax, nothing. also removing the file doesn't produce errors in the CLI.

There doesn't seem to be any way to load config file from the CLI (ie --config <...>).
The tailwind.config.js is in the project root, next to the package.json.

@tailwindlabs tailwindlabs locked and limited conversation to collaborators May 5, 2025
@RobinMalfait RobinMalfait converted this issue into discussion #17885 May 5, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant