Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2015 Web Compiler won't auto-compile .less files on save

I have installed Visual Studio 2015 and, since Web Essentials won't compile .less files anymore, I installed the Web Compiler add-on for compiling .less files.

The issue is that I can't seem to set it up to auto-compile the .less file into .css on save. What can be done for compiling the .less files on save?

like image 520
kerki Avatar asked Dec 17 '15 09:12

kerki


1 Answers

I use Web Essentials with Visual Studio 2015 when using Less. Web Essentials for Visual Studio 2013 has the built-in feature that compiled your .less file into a .css and .min.css file, and it also had the feature to update the .css and .min.css files when you save your .less file.

Now with VS 2015, I had to download two seperate add-ons to get this feature back: Web Compiler and Bundler & Minifier

I thought my Visual Studio/Web Essentials add-on was broken... Bundler & Minifier should fixed the auto-save issue for you, it did for me :)

like image 143
hatsrumandcode Avatar answered Oct 03 '22 18:10

hatsrumandcode