-
Hi I have a Yarn workspaces moonorepo. My structure is as follows:
Only app1 has Tailwind components. Now, everything worked fine until I had to pull a non-local package of components named in the example above as @domain/mypackage. I need to add those components too to Tailwind Config's content list from the hoisted node_modules. If it was in local node_modules, adding a path like './node_modules/@domain/mypackage/dist/components/**/*.{ts,tsx}' works (tested on a different codebase). However, what I need it does not work and I cannot figure out how to properly compose the path. I have tried the following which did not work:
If it helps, the code is bundled with Vite. Any ideas? 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can ignore this. Silly me had a wrong vite config setting and it was outputting JSX files, which I was not including in 'components/**/*.{ts,tsx}'. It's always true... when something does not make sense, it's usually a typo. |
Beta Was this translation helpful? Give feedback.
You can ignore this. Silly me had a wrong vite config setting and it was outputting JSX files, which I was not including in 'components/**/*.{ts,tsx}'. It's always true... when something does not make sense, it's usually a typo.