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

CLI --content option shows warning #7210

Closed
EatonZ opened this issue Jan 26, 2022 · 1 comment · Fixed by #7220
Closed

CLI --content option shows warning #7210

EatonZ opened this issue Jan 26, 2022 · 1 comment · Fixed by #7220
Assignees

Comments

@EatonZ
Copy link

EatonZ commented Jan 26, 2022

What version of Tailwind CSS are you using?

v3.0.16

What version of Node.js are you using?

v17.4.0

What operating system are you using?

Windows 11

Reproduction

Sample Download Link

  1. Use npm to run css-build-dev in package.json, preferably on Windows.
  2. Observe the warning.

Describe your issue

Tailwind v3.0 deprecated the CLI's --purge option and replaced it with --content. That's fine, but it doesn't work. I get the following:

warn - The `content` option in your Tailwind CSS configuration is missing or empty.
warn - Configure your content sources or your generated CSS will be missing styles.
warn - https://tailwindcss.com/docs/content-configuration

The issue can indeed be solved by adding content to tailwind.config.js, but since the option still exists in the CLI, it should also be possible there. Important to note is that --purge using the CLI worked fine in v2.x. There is clearly a bug with the new replacement --content option.

@RobinMalfait
Copy link
Contributor

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should be fixed by #7720, and should be available already!

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

Successfully merging a pull request may close this issue.

2 participants