MinifyCss Class

Summary

Minifies the CSS content.
Assembly
Wyam.Minification.dll
Namespace
Wyam.Minification
Interfaces
Base Types
graph BT Type-->Base0["MinifierBase"] click Base0 "/api/Wyam.Minification/MinifierBase" Base0-->Base1["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type["MinifyCss"] class Type type-node

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(bool) Minifies the CSS content.

Methods

Name Value Summary
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
IsInlineCode(bool) MinifyCss
Flag for whether the content has inline CSS code.
Minify(IReadOnlyList<IDocument>, IExecutionContext, Func<string, MinificationResultBase>, string) IEnumerable<IDocument>
Inherited from MinifierBase
GitHub