Releases: posthtml/htmlnano
Releases · posthtml/htmlnano
2.1.1
2.1.0
2.0.4
2.0.3
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
2.0.1
2.0.0
The major version has to be released because of vulnerability in PostCSS (see [#165])
Changed
- Support optional dependencies [#168] (
minifyUrl
,minifyJs
,removeUnusedCss
,minifyCss
). This might be a breaking change for you. Check the docs: https://github.com/posthtml/htmlnano/pull/168/files - Disable
mergeScripts
&mergeStyles
in the safe preset [#170].