Minify Filter – Revel Framework – Go Lang

Minify Filter - Revel FrameworkI ran into the need of Minify Filter – Revel Framework – Go Lang for my web application. Then I started a discussion with  Revel Framework Dev team for guidance. In the end I have developed the Minify Filter by referring framework  revel.CompressFilter  and shared with dev team. I would like share this minify filter with Revel Community.

What Minify Filter would do?

  • Minify of HTML content type
  • Inline-JavaScript on the page
  • And Inline-CSS on the page

I have used tdewolff/minify library for minification of html content.

Minify Filter

Gist Link: https://gist.github.com/jeevatkm/f17069142842b302e244ada9cda7c4e0