Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gravityblast/minify_response
Elixir Plug that minifies response body
https://github.com/gravityblast/minify_response
Last synced: about 10 hours ago
JSON representation
Elixir Plug that minifies response body
- Host: GitHub
- URL: https://github.com/gravityblast/minify_response
- Owner: gravityblast
- Created: 2016-07-22T15:17:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T15:23:34.000Z (over 8 years ago)
- Last Synced: 2024-10-19T00:16:35.368Z (20 days ago)
- Language: Elixir
- Size: 3.91 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MinifyResponse
The `MinifyResponse.HTML` plug takes care of minifying the response body when the response content type is text/html.
## Installation
Add `minify_response` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:minify_response, "~> 0.1.0"}]
end
```## Usage
```elixir
plug MinifyResponse.HTML
```