https://github.com/hauleth/phoenix_brotli_compressor
https://github.com/hauleth/phoenix_brotli_compressor
assets brotli elixir elixir-lang hacktoberfest phoenix
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hauleth/phoenix_brotli_compressor
- Owner: hauleth
- License: mit
- Created: 2021-09-10T14:04:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T14:04:21.000Z (almost 5 years ago)
- Last Synced: 2025-03-06T16:17:30.347Z (over 1 year ago)
- Topics: assets, brotli, elixir, elixir-lang, hacktoberfest, phoenix
- Language: Elixir
- Homepage:
- Size: 64.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PhoenixBrotliCompressor
Brotli compressor for Phoenix assets.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `phoenix_brotli_compressor` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:phoenix_brotli_compressor, "~> 0.1.0"}
]
end
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/phoenix_brotli_compressor](https://hexdocs.pm/phoenix_brotli_compressor).
In addition to the the above you will need either add:
```elixir
def deps do
[
{:brotli, github: "hauleth/erl-brotli"}
]
end
```
Or install `brotli` CLI utility. You configure compressor to use fixed path via
application configuration:
```elixir
config :phoenix_brotli_compressor, :path, path_to_brotli_cli
```