Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 332
Dogbert Avatar asked Feb 27 '23 16:02

Dogbert


1 Answers

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.

like image 186
Igor Zevaka Avatar answered Mar 07 '23 03:03

Igor Zevaka