nikushi / minipack

Minipack, a gem for minimalists, which can integrates Rails with webpack. It is an alternative to Webpacker.
MIT License
115 stars 22 forks source link

Add helpers for js and css for Webpack4's splitChunks feature #7

Closed nikushi closed 5 years ago

nikushi commented 5 years ago

Like Webpacker, introduced two helper javascript_bundles_with_chunks_tag and stylesheet_bundles_with_chunks_tag. The purpose is to support splitChunks feature that Webpacker provides.

Note

Currently webpack-manifest-plugin does not generate a manifest with grouping chunk entries as arrays https://github.com/danethurber/webpack-manifest-plugin/issues/181. Webpacker swithced to webpack-assets-manifest npm on the work https://github.com/rails/webpacker/pull/1316. So, right now in order to these introduced helpers, you have to switch to webpack-assets-manifest npm.

nikushi commented 5 years ago

bumped as v0.2.4