-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Tips on Save/restore yarn cache #1183
Comments
Closing since this isn't an actual issue, but I think is helpful for people who are looking for solutions -- thanks for all that you do @schneems ! |
Hey @krnjn thanks for flagging this! I wanted also to respond to @schneems. TLDR:
Heroku should allow users to specify directories to cache or cache Detailed answer: We need Heroku Ruby buildpack to cache However, as pointed Opinion (not facts): |
We do make it possible, but we don't make it easy, the interface to do this is via other buildpacks. Maybe this comment will help: #892 (comment) |
Just replying to #654 (comment) (since that convo is locked, but @schneems feel free to copy / paste this directly as a collaborator on the buildpack -- I just would want people to have the full knowledge / suggested approach but agree with your decision to close that thread, just wish this was the last thing under the wire there!)
@philippegirard good to hear that it worked for you -- just as a flag for others who are using the split chunks approach (we're still on an older version of webpacker) this part of the docs is pretty important (posting screenshot since I can't link to the exact section):
We do a sort of crazy thing in our app where each rendered view (including all of it's partials) simply
provide
the packs that it want's to use on it's page, and then we call thejavascript_packs_with_chunks_tag
in the head tag on the application layout page once. This is roughly how this works in our app:We haven't upgraded, but seems like this has also become the suggested approach in the latest version of webpacker as well (albeit with the
javascript_pack_tag
, not ajavascript_packs_with_chunks_tag
).RE: the comment from @schneems I wholeheartedly empathize / agree with this position:
I've had a lot of pain over the years at multiple companies configuring @rails/webpacker to work properly "out of the box" with seemingly basic things like cached dependencies / optimizations and wouldn't necessarily blame the ruby buildpack here! ❤️
The text was updated successfully, but these errors were encountered: