Skip to content

Tailwindcss-cli silently fails when file is not UTF-8 #15467

Closed
@JC-85

Description

@JC-85

What version of Tailwind CSS are you using?

tailwindcss-cli v3.4.16

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

tailwindcss-cli

What version of Node.js are you using?

none

What browser are you using?

N/A

What operating system are you using?

Windows

Describe your issue

Working on a legacy project I had problem getting utility classes generated from some files but not others, even when located next to each other. It turned out after a lot of hair pulling that the problematic files where encoded in UTF-16 with BOM. Converting all files to UTF-8 fixed the problem.

Sugestion: At minimum show an error message when a file can't be processed.

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