MinifyTagHelper Class

MinifyTagHelper Class

Minifies the HTML content of the element.

[HtmlTargetElement(Attributes = "re-minify")]
[HtmlTargetElement(Attributes = "re-minify-if-environment")]
public class MinifyTagHelper: TagHelper

Inheritance  TagHelper MinifyTagHelper

Constructors

Name Description
MinifyTagHelper(IHostingEnvironment)

Properties

Name Description
EnvironmentNames Comma-separated list of environment names, e.g. "Development,Staging". Minification will only occur if the list contains the current environment name.
Minify

Methods

Name Description
ProcessAsync(TagHelperContext, TagHelperOutput)