You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webpacker has a few key things for React on Rails (and many things that don’t matter)
Rails helpers to get the right asset path, be it:
Dev static file
Dev hot path
Production path
Webpack v2 example of using the Manifest Plugin which is the secret sauce of going from the base filename to maybe the hashed file name for production
The ability to configure the directories to match the React on Rails standards of putting all client files, including node_modules in the /client directory
Prototype
Use the basic React on Rails generator and write down the steps to migrate the app to Webpacker. This can form the basis of the upgrade docs, as existing apps won’t be running the generator.
Please don’t be shy to comment!
Summary
Webpacker has a few key things for React on Rails (and many things that don’t matter)
Rails helpers to get the right asset path, be it:
Dev static file
Dev hot path
Production path
Webpack v2 example of using the Manifest Plugin which is the secret sauce of going from the base filename to maybe the hashed file name for production
The ability to configure the directories to match the React on Rails standards of putting all client files, including node_modules in the /client directory
Prototype
Change Rake Task for precompile
Automatically inserted now
Want to use the default webpacker one
Change Generators
Generator code is here
List steps
Test Helper integration
See RSpec Configuration
Doc Changes
Questions
What is needed to support the old way (asset pipeline) to coexist with the new way?
Should the 7.0 update require the new way of using webpacker? This will depend on how much work the migration is.
The text was updated successfully, but these errors were encountered: