How do I make web essentials compile my less in min.css per build?

So web fundamentals no longer build my main .less file into a min.css file.

I haven't changed any settings and the web updates are up to date.

LESS settings for websites are listed below:

Web Essentials Less Settings

Please, help!

+3


source to share


2 answers


Have you tried checking out the CSS setting mentioned in this blog post:

Visual Studio Web Essentials: Synchronize Settings



In a blog post she talks about a similar scenario and suggests taking a look in Visual Studio at Tools> Options> Web Essentials> CSS. From here you want to check and see that in the Minify section, the Minify files to save are set to True .

+6


source


For everyone who had this problem, I had the same thing where it doesn't compile on save. I fixed this by downloading the web compiler part of the Web Essentials package. The link for the compiler is here: https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebCompiler



Now when I save my .less file it updates the less.min file :) Hope this saves someone some time and trouble !!

0


source







All Articles