Skip to content

3.1.0

Choose a tag to compare

@maltsev maltsev released this 03 Feb 13:58
· 86 commits to master since this release
3.1.0
f62ace2

This release touches almost the whole htmlnano code. Minifier modules are fully covered by tests, and many new edge cases were added, so I don’t expect regressions, but please be aware.

Added

  • minifyHtmlTemplate module to minify HTML inside template containers [#11].
  • removeEmptyElements module [#8].
  • minifyAttributes improvements: new module for meta refresh optimization and options for redundant whitespace handling [#37].
  • removeComments now supports a regex string in JSON config [#255].
  • Fallback SVG optimization.

Changed

  • Upgrade to PurgeCSS v8.
  • Expanded and hardened behavior across all minifier modules.
  • Updated SVGO peer dependency range to ^4.0.0 and synced peer/dev versions [#394].

Fixed

  • minifyJs preserves single quotes in handler attributes [#41].
  • minifyJs now pushes event-handler minification promises correctly [#398].
  • Fixed removeUnusedCss option typings [#401].