MinifyJs Wyam.Minification

Minifies the JS content.
This module takes the JS 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("JS",
    ReadFiles("*.js"),
    MinifyJs(),
    WriteFiles(".js")
);

Usage

  • MinifyJs(bool isInlineCode = false)

    Minifies the JS content.

    • isInlineCode

      Boolean to specify whether the content has inline JS 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 JS code.

    • isInlineCode

      Default value is true.

GitHub