My question is How could we successfully include in our host app a js from another engine?
You can install webpacker erb and change the application.js.erb to do
but this does not work with
- I have tried different ways to change webpacker.yml
I have also seen How to include JS from gems? · Issue #57 · rails/webpacker · GitHub
- Looked through How to use this gem from within rails engines? · Issue #348 · rails/webpacker · GitHub and there different ideas there. But it is still open. Hope I will be able to find a solution from there.