MinifyXhtml.

WithSettings(Action<XhtmlMinificationSettings>) Method

Summary

Updates the minification settings.
Assembly
Wyam.Minification.dll
Namespace
Wyam.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.
GitHub