How to use Webpack(er) with Rails 5.2

https://gist.github.com/yalab/cad361056bae02a5f45d1ace7f1d86ef