How should IntelliSense be configured correctly in a monorepo setup? #1493
Unanswered
rozsazoltan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does the IntelliSense
configFileproperty only accept CSS files that contain a valid TailwindCSS import (either the short or long form)? Or can it also interpret the file contents without such an import?Let's say we have a monorepo with an app and a package.
style.cssfile does not contain any TailwindCSS imports.In that case, is it correct to configure IntelliSense like this (to point to the package's CSS file)?
{ "tailwindCSS.experimental.configFile": { "packages/ui/src/style.css": "packages/ui/src/**", // I'm not convinced that this line works without @import "tailwindcss"; - I'll test it later, since it would be logical for it to work without it in the case of a UI package "apps/next-playground/app/globals.css": "apps/next-playground/app/src/**", // Its okay } }Also, am I right in assuming that IntelliSense parses all imported sub-files to gather configuration information? (In our case, would it also take into account the
style.cssfile that is imported into the app'sglobals.css?)apps/next-playground/app/globals.css
packages/ui/src/style.css
Am I thinking about something incorrectly?
Related:
Beta Was this translation helpful? Give feedback.
All reactions