-
-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
Description
Sometimes, we always want to run some code, like
rake react_on_rails:generate_packs
whenever about to run webpack
We can add a shakapacker.yml
configuration so some code can run before invoking the webpack.
precompile_hook: rake react_on_rails:generate_packs
This way, "it just works" in terms of having some files ready that React on Rails needs.
Alternatives:
- While we could modify the installed bin files, that can make upgrades trickier
- We could wrap the bin files with new scripts.