Skip to content

CLI build not loading config file #17884

@KutnerUri

Description

@KutnerUri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions