Closed justin808 closed 2 years ago
I think that it's worth considering having the having the default webpack config match https://github.com/rails/jsbundling-rails (and webpack's default):
So we can have the default be /webpack.config.js
.
Agree? If so, I'll make the change.
CC: @guillaumebriday
What?
Let's have the webpack config for rails/webpacker match jsbundling-rails and use
/webpack.config.js
.Why?
KISS, DRY
Demo of the migration
Single change in shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh
Visual of the current, more complicated flow
Here is a clip from my slides from my past RailsConf talk on the topic: