How to include optional dependencies using Rebar3?

There isn’t anything to do in rebar.config. But you’ll want to include the brotli application in optional_applications of your .app.src file, Erlang -- app

The user then includes brotli in their rebar.config the same as the user would have to do in their mix.exs.

6 Likes