You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use npm to run css-build-dev in package.json, preferably on Windows.
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.
The text was updated successfully, but these errors were encountered:
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
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:The issue can indeed be solved by adding
content
totailwind.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.The text was updated successfully, but these errors were encountered: