Less.js plugins?

Feb 17, 2015 at 3:32 PM
Is it possible to write plugins using the less.js model:


and use them with the less transformer? How would you configure this?
Feb 17, 2015 at 5:13 PM
Edited Feb 17, 2015 at 5:57 PM
BundleTransformer.Less does not support plugins and sourcemaps. I cannot say that it is impossible, but it is very difficult and expensive to implement, because most of the less.js-plugins uses native APIs of Node.js.

In BundleTransformer.Less factually “emulated” the work of these APIs (calls of some APIs have been removed). Actually, even adding support for new versions of LESS it is very difficult work.

Because plugins and sourcemaps it is advanced usage of LESS, then I recommend you to switch to Grunt or Gulp. Now there are a lot of information on this theme:
  1. Introducing Gulp, Grunt, Bower, and npm support for Visual Studio
  2. Grunt and Gulp Intellisense in Visual Studio 2013
  3. Modern Web Tooling in Visual Studio 2015
  4. Manage Client-Side Web Development in Visual Studio 2015, Using Grunt and Bower
  5. An introduction to Gulp
  6. Add Grunt and Bower to Visual Studio projects
  7. Grunt and Gulp Intellisense in Web Essentials 2015