-
Notifications
You must be signed in to change notification settings - Fork 19
LESS
BundleTransformer.Less contains one translator-adapter - LessTranslator
(supports the LESS version 3.9.0).
This adapter makes translation of LESS code to CSS code.
Also contains the LessAssetHandler
debugging HTTP handler, 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, you need to install one of the following NuGet packages:
- JavaScriptEngineSwitcher.ChakraCore
- JavaScriptEngineSwitcher.Jint
- JavaScriptEngineSwitcher.Msie (only in the Chakra modes)
- JavaScriptEngineSwitcher.V8
After package is installed and JS engine is registered, need set a name of JS engine (for example, MsieJsEngine
) to the name
attribute of /configuration/bundleTransformer/less/jsEngine
configuration element in the Web.config
file.
To use a debugging HTTP handler in the IIS Classic mode (this also applies to the XSP web server for Mono), 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" />