Up and running with Less (ASP.NET MVC)

added by mcortz
2/21/2012 2:08:17 PM

3 Kicks, 292 Views

Setup your ASP.NET application to use LessCss


4 comments

dpeterson
2/21/2012 2:08:54 PM
It's a much better idea to compile less to css on the server side as part of an asset pipeline, rather than doing it client-side with javascript. Does the mindscape plugin have that capability?

mcortz
2/21/2012 3:44:35 PM
I follow you, and i have been looking for that as well.

For version 2 they write that its a pro feature you need to buy:
LESS compilation – Pro Feature
Initially we did not compile LESS files into .css files as we assumed folks used the JavaScript parser. Feedback was that it would be really cool if the Web Workbench would just create the CSS files on save in the same way that we do with Sass. So this is now included.

And in the current version (3.0) it seems to be the same. I've been looking in to this, and i can't find any way of doing this without buying it.

Check out Mindscape -> Web Workbench settings. On the compile and minify tables, there's a "go pro".

But i'm thinking of trying dotLess (dotlesscss.org). This should do the trick and i maybe also doing a post about using that.

mcortz
2/21/2012 3:57:27 PM
I asked mindscape:

Me: Is less compilation available in the free edition?
Mindscape: Hi
Mindscape: No, Less compilation comes with the pro edition

dpeterson
2/21/2012 3:58:38 PM
Thanks for the follow-up, I don't think I'll be using their plugin.