

Trim white space around ignoreCustomFragments. Note that this will result in invalid HTML! Remove space between attributes whenever possible. Remove type="text/css" from style and link tags. Other type attribute values are left intact Remove type="text/javascript" from script tags. Remove attributes when value matches default.

Remove all attributes with whitespace-only values Remove quotes around attributes when possible Type of quote to use for attribute values ( ' or ") text/ng-template, text/x-handlebars-template) Process contents of conditional comments through minifierĬomma-delimited string corresponding to types of script elements to process through minifier (e.g. Prevents the escaping of the values of attributes Minify URLs in various attributes (uses relateurl)Īlways collapse to 1 line break (never remove it entirely) when whitespace between tags include a line break. Minify JavaScript in script elements and event attributes (uses UglifyJS) Minify CSS in style elements and style attributes (uses clean-css) Compressed output will be split by newlines at valid HTML split-points Keep the trailing slash on singleton elements Parse input according to HTML5 specifications Use direct Unicode characters whenever possible Must be used in conjunction with collapseWhitespace=trueĬollapse white space that contributes to text nodes in a document treeĪlways collapse to 1 space (never remove it entirely). Omit attribute values from boolean attributesĭon't leave any spaces between display:inline elements when collapsing. Treat attributes in case sensitive manner (useful for custom HTML tags)
