NuglifyHtmlOptions
type NuglifyHtmlOptions =
{
CollapseWhitespace: bool
KeepOneSpace: bool
RemoveComments: bool
RemoveAttributeQuotes: bool
RemoveOptionalTags: bool
MinifyWhileWatching: bool
}| Assembly | Nacara.Plugin.Assets.Nuglify |
Options for minifying HTML.
Fields
CollapseWhitespace: bool
CollapseWhitespace: boolCollapse runs of whitespace between elements.
The whole risk of minifying HTML lives here: a newline between two inline elements is a space the browser draws. KeepOneSpace is what makes collapsing safe, and turning that off is how words run together.
RemoveOptionalTags: bool
RemoveOptionalTags: boolRemove end tags HTML5 says are optional - </body>, </li>.
Off by default. It is valid, and it saves a few bytes a page, but plenty of tools look for </body> to insert something - Nacara's own dev server does - and a page without one is a surprise waiting for whoever meets it next.