@marckohlbrugge have you tried using yarn and webpack with rails? if so, any issues with deploying? In particular to heroku, aws ec2?
We use npm and webpack with rails. Have our Heroku app setup as a rails and node app, then tehre's a thing that compiles our Webpack on deploy.
Only issue is that as our app has grown, compiling has become slower and slower and has made deployments annoying.
Take a look brunch.io