Add a custom buildpack to your to your applications Settings tab under section Buildpacks by using the URL of this repository, instead of the short name of Heroku's own buildpacks. It goes alongside your Ruby and Node buildpacks, placed in last position.
First, check your environment has bs-platform installed (e.g., with npm or yarn). To add the Webpack Rails buildpack in the last index, run this command:
heroku buildpacks:add --index 3 https://github.com/reasonml/reasonml-buildpack.git
On deployment, the buildpack runs the build command
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Started on 1 December 2017.
Created by Nikita Shilnikov.
See LICENSE.md file.
Copy the snippet above into CLI.