-
Notifications
You must be signed in to change notification settings - Fork 99
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
Grover not displaying any css in prod. Works fine in dev #155
Comments
As a work around I included the link to the tailwind cdn in the head of my pdf layout. It is working now. Not sure how to set the path of the stylesheets for grover with capistrano deploy. |
without knowing a lot more about how your assets are setup/included etc it is difficult to comment in great detail, but as you've already found out, it does work if you include the assets. It sounds like that is where you should start (ie why are your assets, or more specifically the styles, not being included). You can enable the
(of course replacing the path with what ever your path actually is!!) You can then check to see what the browser is going to end up reading, thus using to render your page. If tailwind is set to compile things dynamically and you haven't pre-compiled the assets for production.. well.. |
I'm having this same problem. There's no difference between dev and prod apart from the css being precompiled in production and injected in development (via Vite Ruby). The page in question is: https://www.his.school.nz/newsletter_sets/online_newsletters/1 Appending
I'll keep plugging away but I thought I'd post here just in case there was something obvious I'm missing :) |
Visiting that page and setting the CSS media type to print (as Grover does) I get what appears to be the same rendered output as captured in the PDF. I would suggest adding See https://github.com/Studiosity/grover#configuration Alternatively you could include
Note I see there are two "online_newsletter" stylesheets. The other one does specify See https://www.w3schools.com/tags/att_link_media.asp HTH |
Ah of course! I was thinking about it on the way to work and figured it must have been something to do with the |
For others: the confusion comes from how
https://vite-ruby.netlify.app/guide/rails.html#smart-output-✨ |
Just getting this all set up with deploy via capistrano. The pdf renders in production, but it is not applying any tailwind styles. In development everything renders correct. Any thoughts on why? Here is how I export:
The text was updated successfully, but these errors were encountered: