Skip to content

Releases: kangax/html-minifier

1.3.1

23 Mar 10:48
Compare
Choose a tag to compare

Bug fixes

  • behaviour mismatch on phrasing-content-only tags against web browsers (#557, #558, #559, #562, #565, #566, #577, #578)
  • cli.js does not throw Error object (#564)
  • cli.js ignores -o <file> when reading from STDIN (#561)
  • htmlmin:ignore & collapseWhitespace gives erroneous output (#572, #574)
  • webpack cannot process html-minifier sources due to require() usage (#568)
  • collapseWhitespace removes significant whitespace around font icons (#571)

Improvements

  • update documentation on minifier options (#570, #575)
  • stricter eslint validation (#573)
  • processConditionalComments to control minification of IE conditional comments (#563, #567)

1.3.0

16 Mar 19:24
Compare
Choose a tag to compare

Bug fixes

  • messages cli.js (#498)
  • extraneous whitespace inserted by ignoreCustomFragments (#502, #505, #506, #509, #513, #545, #552)
  • removeOptionalTags on empty element crashes (#500, #508)
  • HTMLParser halts on malformed markups (#177, #332, #507, #510, #512, #542)
  • removeComments would give incorrect result if comment matches ignoreCustomFragments (#511, #515)
  • removeOptionalTags too aggressive around non-HTML tags (#503, #514)
  • incorrect collapseWhitespace within inline tags (#519)
  • removeTagWhitespace does not work on the web (#528)
  • cli cannot handle nested directories (#532, #533)
  • removeEmptyElements always remove <iframe>, <audo> & <video> (#536, #538, #539)
  • incorrect auto-closing of tags which permits phrasing content only (#541)
  • extraneous whitespace inserted in attributes around custom fragments (#551, #553)
  • minifyJS does not work the same way on the web (#531)

Improvements

  • minification of contents within conditional comments (#524)
  • collapseWhitespace around comments and removeEmptyElements (#525)
  • clean up <script type="..."> (#521)
  • support parsing of non-conventional attributes (#289, #534, #542)
  • general performance (#520, #522)
  • don't inject tags generated by HTML parser (#540)
  • support parsing of non-standard tag names (#248, #543)
  • migrate from jscs & jshint to eslint (#554)
  • grunt test to cover browser tests (#537)