Skip to content

A Plug that minifies HTML response body

Notifications You must be signed in to change notification settings

s0kil/plug_minify_html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlugMinifyHtml

A Plug that minifies HTML response body

Installation

If available in Hex, the package can be installed by adding plug_minify_html to your list of dependencies in mix.exs:

def deps do
  [
    {:plug_minify_html, "~> 0.1.0"}
  ]
end

Usage

# 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

Resurrection Of minify_response

Releases

No releases published

Packages

No packages published

Languages