Brotli compressor for Phoenix assets.
If available in Hex, the package can be installed
by adding phoenix_brotli_compressor
to your list of dependencies in mix.exs
:
def deps do
[
{:phoenix_brotli_compressor, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/phoenix_brotli_compressor.
In addition to the the above you will need either add:
def deps do
[
{:brotli, github: "hauleth/erl-brotli"}
]
end
Or install brotli
CLI utility. You configure compressor to use fixed path via
application configuration:
config :phoenix_brotli_compressor, :path, path_to_brotli_cli