Skip to content

Releases: posthtml/htmlnano

2.1.1

28 Apr 17:43
Compare
Choose a tag to compare

Fixed

  • Downlevel-revealed closing comment being deleted in safe mode [#278]

2.1.0

19 Oct 16:49
Compare
Choose a tag to compare

Added

  • Convert htmlnano to ES Modules [#260]

Fixed

  • Collapse white spaces according to specs [#257]

2.0.4

15 Apr 17:23
Compare
Choose a tag to compare

Fixed

  • Should not minify <script> and <style> with SRI [#220]
  • Should not merge <style> or <script> with SRI [#220]
  • Should not minify json with SRI [#220]

2.0.3

13 Nov 17:49
Compare
Choose a tag to compare

Added

  • Minify function for HtmlMinimizerWebpackPlugin

Fixed

  • collapseWhitespace: handle textNode when comment is preserved [#184]
  • minifyUrls: srcset & javascript: url [#185]
  • Correct missing value default usage
  • collapseBooleanAttributes: empty string attributes
  • Guard type of attributes' value [#195]
  • Do not choke on svg error [#197]

Changed

  • Minify based on invalid value default
  • Avoid hardcoding preset keys

2.0.2

01 Sep 19:04
Compare
Choose a tag to compare

Fixed

  • JSON-LD crash [#182]

2.0.1

04 Apr 17:44
Compare
Choose a tag to compare

This version contains a critical bug #182.
Don't use it.

Changed

  • Speed improvements [#127]
  • Fix <img sizes> [#180]

2.0.0

12 Jan 14:48
e967c32
Compare
Choose a tag to compare

The major version has to be released because of vulnerability in PostCSS (see [#165])

Changed

1.1.1

19 Sep 09:36
Compare
Choose a tag to compare

This version fixes fatal errors introduced in 1.1.0.

1.1.0

19 Sep 09:11
Compare
Choose a tag to compare

This version contains fatal errors. Please use 1.1.1 instead.

Added

  • Collapse missing value default attribute in removeRedundantAttributes [#158].
  • New normalizeAttributeValues module to normalize casing of attribute values [#163].
  • Custom matcher for removeComments [#156].

Changed

  • Remove more empty attributes in removeEmptyAttributes [#161].
  • Enhance collapse whitespace in collapseWhitespace [#145].
  • minifyJs and minifyUrls enhancement [#159].
  • Enhance attribute collapse whitespace in collapseAttributeWhitespace [#157].

1.0.1

11 Sep 07:31
Compare
Choose a tag to compare

Added

Changed

  • SVGO plugins configuration [#153]