-
Notifications
You must be signed in to change notification settings - Fork 48
ASP.NET Core Extensions
Taritsyn edited this page Nov 9, 2021
·
1 revision
Configuration of ASP.NET Core extensions are made through special classes: WebMarkupMinOptions
, HtmlMinificationOptions
, XhtmlMinificationOptions
, XmlMinificationOptions
and HttpCompressionOptions
.
WebMarkupMinOptions
class in addition to properties, that inherited from WebMarkupMinConfigurationBase
class, also has its own properties:
Property name | Data type | Default value | Description |
---|---|---|---|
AllowMinificationInDevelopmentEnvironment |
Boolean |
false |
Flag for whether to allow markup minification if the current hosting environment name is Development .
|
AllowCompressionInDevelopmentEnvironment |
Boolean |
false |
Flag for whether to allow HTTP compression of content if the current hosting environment name is Development .
|
DefaultEncoding |
Encoding |
Encoding.Default |
Default encoding that will be used if the content encoding could not be determined for the current HTTP response. |
Further specifics of configuration depends on version of used framework.
- Core
- External JS and CSS minifiers
- ASP.NET Extensions
- How to upgrade applications to version 2.X
- Additional reading and resources