-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Esmodule breaks, cljs config extension is recommended but not found #7153
Comments
I think I'm having the same issue: npx tailwindcss build -i demo/tailwind-base.css -o demo/style.css
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 I do have a content tag in tailwind.config.cjs, but when I look at |
In my project, I was able to get it to build without a config file with this: npx tailwindcss build -i demo/tailwind-base.css -o demo/style.css --content "./demo/index.html" It seemed like build wasn't picking up my config with a cjs extension, but specifying the content using --content seems to build as I expect. |
CLI defaults to Lines 388 to 392 in ce98735
There used to be support for detecting cjs, but for some reason that was removed. Just pass in |
Then this should be included in terminal prompt to rename file
|
Thanks for opening the issue! In our insiders build we now attempt to detect that you're in an ES module and will create a config file with a .cjs extension in when we do. This also works for the postcss config file when using the |
Discussed in #7150
Originally posted by janat08 January 21, 2022
I have package.json that says I’m working on esmodule. I got warning that config extension needs to change after reading docs I believe i must also specify new config location when running jit compilation because none of content is detected. Am I right?
The text was updated successfully, but these errors were encountered: