madebysource / lesshat

Smart LESS CSS mixins library.
lesshat.com
MIT License
2.19k stars 258 forks source link

Web Essentials, Visual Studio 2012 Compile Errors #80

Open taitems opened 10 years ago

taitems commented 10 years ago

Hey guys, I seem to remember coming across this issue before but cannot find the bug anywhere! Essentially lesshat has always been at odds with Visual Studio, and simply won't compile. The fix in the past has generally been to remove lesshat and put elements.less in, instead. Obviously that's not without drawbacks.

I seem to remember a comment stating that the version of the LESS engine that Web Essentials uses does not support inline JavaScript, eg:

@process: ~`(function(value){return value=value||"stretch"})((function(){var args="@{arguments}";return args=args.replace(/^\[|\]$/g,"")})())`;

But I can't get any meaningful errors out.

Thought I'd put this here as I'm at the end of my tether!

custa1200 commented 10 years ago

I am also having issues with this. I would have assumed Web essentials to allow Javascript to be executed as part of the compiling as per LESS's instructions http://www.lesscss.org/#-javascript-evaluation

petrbrzek commented 10 years ago

This is a conversation from twitter https://twitter.com/mkristensen/status/429092520014790656 Mads Kristensen is a Microsoft developer. So, hopefully it might be fixed in the next WE version.

mihail64 commented 10 years ago

In Web Essentials 2013 everything ok

eossipov commented 10 years ago

This is free to download, and I believe it may solve your compilation issues, if not, let me know. http://visualstudiogallery.msdn.microsoft.com/2b96d16a-c986-4501-8f97-8008f9db141a