Search code examples
javascriptc#v8javascript.net

Running Less.js on C#/Javascript.net/V8


I'm trying to run less.js in a C# application. I tried running the default distro using JavaScript.net but I'm getting window is undefined error. I think that is caused due to this not being run in a browser but on a JS engine. Is there any workaround / any pointers to resources that can help?


Solution

  • You should probably run .Less instead. If I understand correctly, you are trying to run less.js on the server through a Javascript interpreter. Why not just skip the interpreter and run LESS conversion using all .NET code? Way less pain and overhead.