Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A Plug that minifies HTML response body. And more.

Notifications You must be signed in to change notification settings

Miserlou/plug_minify_html_plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plug_minify_html_plus

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.

Installation

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

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

TODO:

  • CSS maybe?
  • Other types maybe?

Resurrection Of minify_response

About

A Plug that minifies HTML response body. And more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%