0.5.0 • Published 11 years ago
mimosa-minify-html v0.5.0
mimosa-minify-html
Overview
This module uses html-minifier to minify .html files.
For more information regarding Mimosa, see http://mimosa.io.
Usage
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.
Functionality
During mimosa build and mimosa watch, when the --minify flag is enabled, this module will optimize .html files.
Default Config
minifyHtml: {
options: {}
}optionsan object, pass-through options to the html-minifier library.
Option Reference:
collapseWhitespaceuseShortDoctyperemoveCommentsremoveCommentsFromCDATAremoveCDATASectionsFromCDATAremoveEmptyAttributescleanAttributesremoveRedundantAttributesremoveAttributeQuotesremoveScriptTypeAttributesremoveStyleLinkTypeAttributesremoveEmptyElementscollapseBooleanAttributeskeepClosingSlashremoveOptionalTagshtml5removeIgnoredcaseSensitive