Minifies the CSS content.
- Namespace
- Statiq
.Minification - Interfaces
- Base Types
-
- object
- MinifierBase
Syntax
public class MinifyCss : MinifierBase, IModule
Examples
Pipelines.Add("CSS",
ReadFiles("*.css"),
MinifyCss(),
WriteFiles(".css")
);
Remarks
This module takes the CSS content and uses minification to reduce the output.
Constructors
| Name | Summary |
|---|---|
| MinifyCss |
Minifies the CSS content. |
Methods
| Name | Return Value | Summary |
|---|---|---|
| ExecuteAsync |
Task |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|
| IsInlineCode |
MinifyCss |
Flag for whether the content has inline CSS code.
|
| MinifyAsync |
Task |
Inherited from MinifierBase
|