4

As far as I understand there are different solutions to handle .less files in a ASP.Net MVC application, including:

So far I'm working in an environment where Web Essentials is already installed and automatically compiles my .less files to CSS.

But in the Bundling and Minification article they mention dot-less for .less files management and bundling.

Which is the recommended solution? Does anyone have feedback on how to integrate .less in an ASP.Net MVC?

madth3
  • 7,275
  • 12
  • 50
  • 74
sdabet
  • 18,360
  • 11
  • 89
  • 158

1 Answers1

2

I like dot-less for debugging, you shouldn't have to build every time you make a CSS change to see it in the website. Then in production dotless will also compile and minify the CSS for you. You just need to change the link to your css file in your layouts.

Richard Seal
  • 4,248
  • 14
  • 29
  • Do you know if Web Essentials will play well with dotless if I have both installed? – sdabet Jun 26 '13 at 13:40
  • I have both installed without any issues. Web Essentials is VS extension and dotless is a part of the website, so they don't conflict. Web Essentials makes it nicer to edit the less files too - syntax highlighting and all that. – Richard Seal Jun 26 '13 at 13:50