This project has moved. For the latest updates, please go here.

Bundle Transformer: LESS

BundleTransformer.Less contains translator-adapter LessTranslator (supports LESS version 2.7.2). This adapter makes translation of LESS-code to CSS-code. Also contains HTTP-handler LessAssetHandler, which is responsible for text output of translated LESS-asset.

BundleTransformer.Less does not support loading of plugins.

As a JS-engine is used the JavaScript Engine Switcher library. For correct working of this module is recommended to install one of the following NuGet packages: JavaScriptEngineSwitcher.Msie, JavaScriptEngineSwitcher.V8 or JavaScriptEngineSwitcher.ChakraCore. After package is installed and JS-engine is registered, need set a name of JavaScript engine (for example, MsieJsEngine) to the name attribute of /configuration/bundleTransformer/less/jsEngine configuration element.

To use a debugging HTTP-handler in the IIS Classic mode, you need add to the /configuration/system.web/httpHandlers element of the Web.config file a following code:

<add path="*.less" verb="GET"
  type="BundleTransformer.Less.HttpHandlers.LessAssetHandler, BundleTransformer.Less" />

Last edited Jan 5 at 6:21 PM by Taritsyn, version 11