Skip to main content

Crate sitesquatch_plugin_minify

Crate sitesquatch_plugin_minify 

Source
Expand description

Conservative HTML minification, modelled on html-minifier-terser with collapseWhitespace, removeComments and useShortDoctype.

With shorten_attributes, boolean attributes lose their values (defer="defer" to defer), and whitespace that doesn’t matter comes out of class, srcset, sizes, URL attributes and the viewport <meta>. Attribute order and quoting are left alone; <pre>, <textarea>, <script> and <style> contents are copied verbatim.

Structs§

MinifyOptions
MinifyPlugin

Functions§

minify