Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 992 Bytes

migrate_from_webpack_manifest.md

File metadata and controls

30 lines (19 loc) · 992 Bytes

How to migrate from WebpackManifest

To migrate from WebpackManifest <= v0.2.4 to Minipack v0.3.0 or above, follow these steps:

  1. Update Gemfile. Remove the line for webpack_manifest, then add a new line for minipack.
# Gemfile
-gem 'webpack_manifest'
+gem 'minipack'
  1. Run bundle install. Gemfile.lock will be automatically updated.

  2. Rename and modify the configuration file.

This step is strongly recommended, although it can be skipped because Minipack v0.3.0 still works with old configuration made before. Old configuration support will be removed in v0.4.0.

First, rename config/initializers/webpack_manifest.rb as config/initializers/minipack.rb. Then, modify the class name at the top of the file as follows:

-WebpackManifest::Rails.configuration do |c|
+Minipack.configuration do |c|
  1. Make sure if your app could work

Make sure your app works normally, and also check out that the all request specs would pass.

That's it! Thank you.