Hacker News new | ask | show | jobs
by danmaz74 3978 days ago
A bit off topic: any advice about integrating Webpack with Rails? Looks like the most popular gem to do that has only 19 stars on github... https://github.com/danott/webpack_rails
1 comments

Your best bet is no integration at all. Just set up webpack to read from ./app/assets and output to ./public. Run it separately, preferable with a foreman Procfile for development (I've used Procfile.dev before).
You'll still likely want digested assets that integrate with Rails asset helpers. This has been done with Gulp[1] if that helps at all.

[1]: http://viget.com/extend/gulp-rails-asset-pipeline

Thanks for the suggestion. I'd prefer some more automation, but that's also a possible solution.