mipearson / webpack-rails

Integrate webpack with your Ruby on Rails application
MIT License
543 stars 82 forks source link

404 on application.js, unable to find other manifestts. #65

Closed ponny closed 7 years ago

ponny commented 7 years ago

I've followed the instructions from the gem markdown.

For some reason I'm getting the rails 404 on /webpack/application.js.

I've tried adding other files alongside application.js but all I'm getting is "Can't find entry point 'main' in webpack manifest". Re-running npm install and restarting Foreman doesn't fix the issue.

Any ideas what I'm doing wrong that would cause this strange behaviour?

Update: I've tried the steps in #58 but no fix.

Update 2: I figured out that I need to add main/main.js to the entry points in webpack.config.js but it's 404ing the same as application.js.

ponny commented 7 years ago

My bad there - we had some host rewriting going on to handle CDNs. Might be worth mentioning adding extra files to webpack.config.js in the readme or using auto-discovery.