Skip to content

Automatically Generate Webpack Entry Points

Mike Greiling requested to merge webpack-auto-config into master

This is the culmination of the efforts that began with #37792 (closed) and #41341 (closed)

This MR changes the behavior of webpack to automatically create entry points introspected from the directory structure within /app/assets/javascripts/pages which will then be automatically included as script tags on the appropriate pages.

Doing this involves modifying the webpack.config.js file to automatically configure itself to produce these new entry points, and then modifying the webpack-rails gem integration to recognize and use these auto-generated bundles.

Merge request reports

Loading