rails / jsbundling-rails

Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
MIT License
831 stars 143 forks source link

Update switch_from_webpacker.md with webpack codesplitting config #177

Closed kemper closed 8 months ago

kemper commented 10 months ago

Add the configuration needed to configure webpack to do code splitting while ensuring all assets are fingerprinted.

This was discussed, but without a fully working example in issue #15 . Adding the example to this page would have been very helpful, and should help others who are migrating.