-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
Replace rails/webpacker #10298
Comments
We moved all assets into the webpacker directory to manage it there. I reckon that we should revert that one by one and tackle the Javascript part last. We will be reverting a lot of this pull request: It has 51 commits and many of them deal with individual packages like Foundation and jQuery. It may be useful to have a hybrid system for a while. I picked relevant commits here in reverse order to act on:
|
From the article, there are three alternatives:
From what I can see, the first approach will be the best fit when AngularJs will be removed. In the meantime, while it's still possible to use the first on the presence on AngularJS, I'm not sure if we should use |
jsbundling-rails seems to be closer to what we do at the moment. So I would start there. We do have JS templates which contain Ruby code. And I believe, but I may be wrong, that importmaps-rails doesn't support this mix. |
How about using shakapaker? |
Yes, that would be the easiest path forward for now because it offers backwards-compatibility with webpacker. Long-term, I would like to get closer to the original Rails asset pipeline with sprockets and importmap. Default packages are often better maintained and tested. And Rails usually picks very good defaults which are still quite simple and robust while offering everything you need. Anyway, if we can't jump straight back to the defaults then we should transition to Shakapacker for now. |
We use the gem rails/webpacker, which has been retired.
Some of its dependencies already have security warnings and can't be automatically updated (eg loader-utils), because webpacker locks to the older versions.
The webpacker readme provides a few suggestions on how to proceed.
Edit: consensus is to try jsbundling-rails
The text was updated successfully, but these errors were encountered: