webpack-rails
https://github.com/mipearson/webpack-railsProcfile
from webpack-rails can be renamed toProcfile.dev
to not conflict with Heroku, then run in dev withforeman start -f Procfile.dev
- for convenience:
bin/dev
(chmod +x):foreman start -f Procfile.dev
- for convenience:
- custom buildpack to include
webpack:compile
step https://github.com/patbenatar/heroku-buildpack-webpack - disable
webpack-dev-server
in non-dev environments:config.webpack.dev_server.enabled = false
Reference implementation on cardsorter: https://github.com/philosophie/cardsorter/commit/46285b42383ecfd77706fbedaf6654bdd14ebe99