-
Notifications
You must be signed in to change notification settings - Fork 21
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
Task/upgrade to rails 8 #265
Conversation
After upgrading to Rails 8, Webpacker is encountering issues in the development environment.
remove I think we need to implement #204 ticket. For now, we can run |
Currently working in a branch to replace Webpacker at present with Vite. |
@gamesover I've now got a PR in place for Vite to take over |
Fantastic work, @leesheppard! A bit off-topic – I know this project doesn’t require PDF generation, but I came across this article discussing the migration from Webpacker to Vite.
Wicked_PDF and wkhtmltopdf are widely used in many Ruby on Rails projects. If Vite doesn’t support them, it could become a significant challenge. In such cases, do you know of any workarounds or alternative libraries that support wkhtmltopdf? Or would you recommend alternatives to Vite that maintain compatibility with wkhtmltopdf? Appreciate any insights you might have! |
@gamesover There’s no fundamental incompatibility between Vite and WickedPDF, only the need to configure asset references so that the PDF generator can do its job correctly. It comes down to how you reference static assets so that wkhtmltopdf can properly find them. Ensuring that your PDF-generating views (or layouts) use either:
As mentioned above, the common workaround is to ensure your PDF views reference compiled assets rather than the dev server. In other words, you generate your PDF against the production-bundled assets in |
Thanks for your advice. If so, |
Upgrade from 7.2 to 8.0