-
-
Notifications
You must be signed in to change notification settings - Fork 895
feat(postcss): allow content from node_modules #4554
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
Conversation
✅ Deploy Preview for unocss ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
@HomyeeKing @antfu This may be important for us. We are converting from Tailwind and use a number of custom 'source' components in our Monorepo. We install these via NPM and consume them by importing the TypeScript source directly, including the Atomic CSS inside our TSX components. We build everything out using Vite. Moreover, like many Monorepo users, our CSS configuration files and stylesheets, which comprise our Design System, are stored in a package, not in the the web app itself. Those files are shared among many apps. For Atomic CSS tools to find these source files via the filesystem, they have to be able to scan This may be moot if they are seen via the Vite pipeline, but I'm concerned that this may not work, and I may need this as a fallback, and possibly for other use cases, including finding the configuration files and CSS files themselves. We use a focused patturn within
Elsewhere:
And in a package:
If the pipeline works, then that would be great. Just for your information, Tailwind 4 can't get their pipeline scanner to work, so they solved that problem by removing it, which is causing many breaking changes for Monorepo users: tailwindlabs/tailwindcss#16631 We are hoping to escape this drama. We're a pure SPA--no SSR of any kind--so we're not concerned about the concurrent rendering problems which caused this disaster, although perhaps even those problems could have been solved. We just want to get away from Tailwind, because they're hurting us. It seems gratuitous for Uno CSS to force Appreciate all of you very much. John |
commit: |
Thanks, everyone. |
I think the
content.filesystem
options is like@source
in tailwindcsssometimes we may need to include the packages from
node_modules
, like @llamaindex/chat-uiso it'd be better to be able access the node_modules