MinifyHtml.

WithSettings(Action<HtmlMinificationSettings>) Method

Summary

Updates the minification settings.
Assembly
Wyam.Minification.dll
Namespace
Wyam.Minification
Containing Type
MinifyHtml

Syntax

public MinifyHtml WithSettings(Action<HtmlMinificationSettings> action)

Examples

MinifyHtml()
    .WithSettings(settings =>
    {
        settings.CollapseBooleanAttributes = false;
        settings.AttributeQuotesRemovalMode = HtmlAttributeQuotesRemovalMode.KeepQuotes;
    })

Parameters

Name Type Description
action Action<HtmlMinificationSettings> A function to update the minification settings with.

Return Value

Type Description
MinifyHtml The current instance.
GitHub