A Plug that minifies HTML response body
This is a fork of s0kil/plug_minify_html, which appears abandonded at time of writing, with some enhancements, specifically removing comments.
If available in Hex, the package can be installed
by adding plug_minify_html_plus
to your list of dependencies in mix.exs
:
def deps do
[
{:plug_minify_html_plus, "~> 0.2.0"}
]
end
# Simple
plug PlugMinifyHtml
# Browser Pipeline
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
plug PlugMinifyHtml
end
- CSS maybe?
- Other types maybe?