How to compile less/sass files in Visual Studio 2017

Mihail Shishkov picture Mihail Shishkov · Mar 10, 2017 · Viewed 88k times · Source

In VS <= 2015 we can use WebEssentials extension that takes care for compiling the less/sass files for us, but currently it does not support VS 2017. Are you aware of similar extension that can compile less/sass on build?

Answer

Jimmy picture Jimmy · Mar 10, 2017

WebEssentials is being split up into multiple extensions. I believe the functionality you want is now in the Web Compiler extension.

If you want to do it without extensions, you could use a task runner like Gulp. See here for a walkthrough of how to integrate Gulp tasks into VS.