CssBundlingOptions class
namespace: Serenity.Web assembly: Serenity.Net.Web
Options for CSS bundling.
public class CssBundlingOptions : IOptions<CssBundlingOptions>
Public Members
| name | description |
|---|---|
| CssBundlingOptions() | Initializes a new instance of the CssBundlingOptions class. |
| Bundles { get; set; } | Gets or sets the list of bundles and their contents. |
| DedupImports { get; set; } | Gets or sets whether a CSS file that is imported multiple times within a bundle should only be embedded once. When false (the default, and matching browser behavior), the file is embedded at each import position. When true, the first occurrence is embedded and later ones are skipped. |
| Enabled { get; set; } | Gets or sets whether CSS bundling is enabled. |
| Minimize { get; set; } | Gets or sets the minimization flag. When true, CSS files are minified and their minified versions are used in bundles. |
| NoMinimize { get; set; } | Gets or sets a list of relative paths to not minify. |
| ProcessImports { get; set; } | Gets or sets whether CSS @import statements in bundle source files should be processed and their contents embedded into the bundle. Only plain (non media qualified), relative imports at the start of a file are processed; external, absolute and conditional imports are left as is. Defaults to true. Set to false to disable import processing entirely. |
| Replacements { get; set; } | Gets or sets the replacement dictionary for placeholders in bundle contents, like {Development}. |
| UseMinCSS { get; set; } | Gets or sets whether a .min.css file that exists in the file system should be used if available, instead of minifying the file in memory. |
| Value { get; } | Returns this object. |
| const SectionKey | The default section key for this option class. |
See Also
- Source: CssBundlingOptions.cs