Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.34 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.34 KB

Cassette.LessJs

Version of the Less compiler for Cassette.Net using the original Js Libraries

Cassette.Less uses dotless. This is a great library and supports mono, but is based on an older version of Less.

This library implements a Less compiler using the windows script host version of less.js for windows. This strictly limits usage to Windows OS, but has the advantage of matching the implementation of less compilation in the Web Essentials Visual Studio extension.

To use it, add the DLL to your project and replace the Less configuration with the corresponding LessJs configuration

Old

container.Register(Cassette.Stylesheets.ILessCompiler, Cassette.Stylesheets.LessCompiler).AsMultiInstance(); container.Register(typeof(Cassette.IFileSearchModifier<Cassette.Stylesheets.StylesheetBundle>), Cassette.Stylesheets.LessFileSearchModifier)).AsSingleton();

New

container.Register(Cassette.Stylesheets.ILessJsCompiler, Cassette.Stylesheets.LessJsCompiler).AsMultiInstance(); container.Register(typeof(Cassette.IFileSearchModifier<Cassette.Stylesheets.StylesheetBundle>), Cassette.Stylesheets.LessJsFileSearchModifier)).AsSingleton();