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

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

Open
JC-85 opened this issue Dec 20, 2024 · 0 comments
Open

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

JC-85 opened this issue Dec 20, 2024 · 0 comments

Comments

@JC-85
Copy link

JC-85 commented Dec 20, 2024

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.

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

No branches or pull requests

1 participant