MinifyCss Wyam.Minification

Minifies the CSS content.
This module takes the CSS content and uses minification to reduce the output.

Package

This module exists in the Wyam.Minification package which is not part of the core distribution. Add the following preprocessor directive to your configuration file to use it:
#n Wyam.Minification

Examples

Pipelines.Add("CSS",
    ReadFiles("*.css"),
    MinifyCss(),
    WriteFiles(".css")
);

Usage

  • MinifyCss(bool isInlineCode = false)

    Minifies the CSS content.

    • isInlineCode

      Boolean to specify whether the content has inline CSS code. Default value is false.

Fluent Methods

Chain these methods together after the constructor to modify behavior.

  • IsInlineCode(bool isInlineCode = true)

    Flag for whether the content has inline CSS code.

    • isInlineCode

      Default value is true.

GitHub