Is it possible to enable Tailwind completions without the Tailwind package in node_modules?

This would be useful for:

- mono repos where the node_modules folder is in a different place, higher in the folder hierarchy
- projects that use the Tailwind CDN instead of the package

1
5 comments

Why is the package is required for the plugin to work? Is it because the plugin depends on code that's in the package?

 

1

Yes, the language service used to provide completion depends on tailwindcss module

1

We have a node_modules folder in a parent folder (our monorepo root) and it contains the Tailwind package.

Is it possible to tell the Tailwind plugin look for the Tailwind package in that folder?

Thanks 🙏

0
If this folder is not included in your project (located in its parent folder), then not:(The IDE won't try to look up the module installation outside of the project
0

Please sign in to leave a comment.