Skip to content

Releases: posthtml/htmlnano

0.2.0

14 Sep 17:55
Compare
Choose a tag to compare

Breaking changes

  • The API of minifyCss module has been changed since cssnano has been updated to version 4, which has a different API. Check the following resources for more info:

Added

  • Add presets (#64).
  • Add collapseAttributeWhitespace module for collapsing spaces in list-like attributes (#25).
  • Add deduplicateAttributeValues module for de-duplicating values in list-like attributes (#39).
  • Better support for AMP pages (#59).
  • Collapse whitespaces between top-level tags (#24).

Changed

  • Improve whitespace normalization using normalize-html-whitespace (#21).

Fixed

  • Don't collapse visible="false" attributes in A-Frame pages (#62).

0.1.10

03 Aug 12:03
Compare
Choose a tag to compare

Fix merging <script> tags without leading ; (#55).

0.1.9

29 Apr 10:11
Compare
Choose a tag to compare

The default options have been changed to make default minification safe (#50).

0.1.8

17 Apr 11:49
Compare
Choose a tag to compare

I fixed ES6+ minification (#48).

0.1.7

13 Mar 18:31
Compare
Choose a tag to compare

I updated dependencies which also fixed the SVG minification bug [#47].

0.1.6

27 Jun 15:14
Compare
Choose a tag to compare
  • Fix "Not a function" error [#42].

0.1.5

24 Apr 12:18
Compare
Choose a tag to compare
  • Minify SVG #28
  • Merge <script> #19
  • Remove redundant type="submit" from <button> #31
  • Fix Windows build #30

0.1.4

16 Feb 15:19
Compare
Choose a tag to compare
  • Minify JSON.
  • Merge multiple <style> into one.
  • Collapse boolean attributes.
  • Remove redundant attributes.
  • Improve the README.

0.1.3

09 Feb 12:09
Compare
Choose a tag to compare

Fixed: don't alter HTML comments inside not relevant modules (#17).

P. S. By mistake I didn't update the version in package.json. It should be 0.1.3 instead of 0.1.2.

0.1.2

07 Feb 20:31
Compare
Choose a tag to compare

Don't remove conditional comments in safe mode (#13).