Less Wyam.Less

Compiles Less CSS files to CSS stylesheets.
The content of the input document is compiled to CSS and the content of the output document contains the compiled CSS stylesheet.

Package

This module exists in the Wyam.Less package which is not part of the core distribution. Add the following preprocessor directive to your configuration file to use it:
#n Wyam.Less
Alternativly, you can add all modules at once with the following preprocessor directive:
#n Wyam.All

Examples

This is a pipeline that compiles two Less CSS files, one for Bootstrap (which contains a lot of includes) and a second for custom CSS.
Pipelines.Add("Less",
    ReadFiles("master.less"),
    Concat(ReadFiles("bootstrap.less")),
    Less(),
    WriteFiles(".css")
);

Usage

  • Less()

GitHub