Search code examples
cssvisual-studiosassvisual-studio-2017less

How to compile Less/Sass files in Visual Studio 2017+


In VS <= 2015 we can use a WebEssentials extension that takes care for compiling the less/sass files for us, but currently it does not support VS 2017. Is there a similar extension that can compile Less/Sass on build?


Solution

  • 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.