question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `content` folder to tailwind paths by default

See original GitHub issue

Is your feature request related to a problem? Please describe.

When using @nuxt/content, the content/ folder will not be checked by Tailwind’s JIT engine by default.

Describe the solution you’d like

That it will be checked and classes will be generated

Describe alternatives you’ve considered

Adding it manually which is error-prone 🙈

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
manniLcommented, Oct 19, 2022

Interesting! I’ll have a deeper look once again and report back ☺️

1reaction
Atinuxcommented, Oct 18, 2022

Actually it should be added by default, you can test with running yarn dev @manniL

See https://github.com/nuxt/content/blob/005fdfd19aa9658f821cb64a868d7f4d09582e1f/src/module.ts#L594-L597

Read more comments on GitHub >

github_iconTop Results From Across the Web

Content Configuration - Tailwind CSS
Using relative paths. By default Tailwind resolves non-absolute content paths relative to the current working directory, not the tailwind.config.js file.
Read more >
config.content should be resolved relative to the config file for ...
Having tailwind.config.js in one of the project doesn't resolve relative paths correctly after updating to v3. One has to provide full path from ......
Read more >
How does the configuration work for the content section in ...
Im setting up tailwind in a react project bundled ...
Read more >
Styling: Tailwind CSS - Next.js beta docs
Inside tailwind.config.js , add paths to the files that will use Tailwind CSS class ... export default function Page() { return ( <h1...
Read more >
How To Use Tailwind CSS With React | by Sebastian - Medium
Step 1: Creating Your React Project · Step 2: Install Tailwind CSS · Step 3: Generate Configuration Files · Step 4: Configure Path...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found