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

lsp-tailwindcss not activate in monorepo with tailwind-workspace-preset.js #35

Open
kermorgant opened this issue Feb 12, 2022 · 2 comments

Comments

@kermorgant
Copy link

Hi,

In a monorepo setup based on nx with separate next.js apps sharing a central tailwind-workspace-preset.js (inspired by this doc), lsp-tailwindcss often fails to activate because many css files don't have any parent folder containing tailwind.config.js.

Maybe adding an customizable var to allow per project definition of what filke triggers activation would be a good addition ?
(For now, I've just added a symlink to have a tailwind.config.js in project root)

@merrickluo
Copy link
Owner

Thanks for the info, I originally added this check because the language server seems to require it, if it works fine, maybe this should be removed.

@kermorgant
Copy link
Author

kermorgant commented Mar 10, 2022 via email

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

2 participants