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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With