This module uses html-minifier to minify .html
files.
For more information regarding Mimosa, see http://mimosa.io.
Add 'minify-html'
to your list of modules. That's all! Mimosa will install the module for you when you start mimosa watch
or mimosa build
.
During mimosa build
and mimosa watch
, when the --minify
flag is enabled, this module will optimize .html
files.
minifyHtml: {
options: {}
}
-
options
an object, pass-through options to the html-minifier library.
Option Reference:
collapseWhitespace
useShortDoctype
removeComments
removeCommentsFromCDATA
removeCDATASectionsFromCDATA
removeEmptyAttributes
cleanAttributes
removeRedundantAttributes
removeAttributeQuotes
removeScriptTypeAttributes
removeStyleLinkTypeAttributes
removeEmptyElements
collapseBooleanAttributes
keepClosingSlash
removeOptionalTags
html5
removeIgnored
caseSensitive