Changelog
Version 3.2.0
selfCloseTags
added which is used as an easier global setting to enable/disable self-closing tags.Changelog
Version 3.1.0
contentMap
can now be passed to transform any XML content. For instance, if you want <a>null</a>
to instead appear as <a></a>
you pass in contentMap: (content) => { return content === null ? '' : content }
Changelog
Version 3.0.0
attributesFilter
has been renamed attributeReplacements
filter
has been renamed contentReplacements
true
attribute values can now be outputted by setting config option attributeExplicitTrue: true
(#57)attributeFilter
. For instance, to remove null
attribute values from the output, you can supply the config option attributeFilter: (key, val) => val === null
(#58 and #10)devDependencies
: migrated from babel-eslint
to @babel/eslint-parser
, migrated from uglify-es
to uglify-js