Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html5small

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html5small

  • 0.4.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

HTML5small

HTML5small is a general-purpose minifier for HTML5 documents.
It is faster than html_compressor and at the same time compresses much better, while still generating valid HTML5.

Usage

$ gem install html5small
require 'html5small'
::HTML5.minify '<html>...</html>'

As a nanoc filter

HTML5small can also be used as a nanoc filter. This will lead to even faster loading of your compiled sites.

To use the HTML5small filter, add this line to your lib/helpers.rb:

require 'html5small/nanoc'

Then adapt your Rules to apply the filter where necessary. For example:

compile '/blog/*/' do
  filter :erb
  filter :html5small
end

Origin

HTML5small is based on h5-min, which is currently unmaintained.

FAQs

Package last updated on 24 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc