Triggering Panda build / PostCSS from within node.js? #1334
Unanswered
subvertallchris
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@subvertallchris I've not tried this before, but I'm interested. Just did a quick research to acquaint myself with that space. Are you using |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm attempting to use the new email service Resend, which supports React components and proposes to simplify aspects of sending email from an application. It renders components on the server, so it's best described as SSR. It's not playing well with Panda so far. I'm getting output with classNames but no styles. As far as I can tell it doesn't add any styles because it's rendering from within node, not Next.js's build process, so PostCSS isn't getting involved. Is there a way around this right now?
Looking at how other frameworks/libraries do it, I think the most appropriate thing would be something like
getCssText
from Stitches. Panda's docs remark that this isn't necessary because PostCSS takes care of it during build. It looks like it should also be possible for me to invoke PostCSS from node, so maybe there's a way to reuse whatever Panda is already doing on-demand from within the application?Appreciate your help and advice!
Beta Was this translation helpful? Give feedback.
All reactions