WithSettings(Action<XhtmlMinificationSettings>) Method
Updates the minification settings.
Namespace
Statiq.Minification
Containing Type
MinifyXhtml

Syntax

public MinifyXhtml WithSettings(Action<XhtmlMinificationSettings> action)

Examples

MinifyXhtml()
    .WithSettings(settings => settings.RemoveHtmlComments = false)

Parameters

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

Return Value

Type Description
MinifyXhtml The current instance.