Вопрос

I have a LESS file that when saved ONLY updates the non-minified css file. No matter what I do it will not update the min file. I can of course minify the main via web essentials, but that sort of negates the function of compiling LESS on save...

There is no error or anything - it just happily ignores the min.css file. In VS2012 it works perfectly.

Does anyone have any idea of what to do about this?

/Erik

Это было полезно?

Решение

It can be done via setting: Tools -> Options -> Web Essentials -> LESS. I found the answer here - How to ignore certain LESS files in Web Essentials LESS compiling? (Bootstrap)

Update: This option must be set on CSS, see screenshot: enter image description here

After this when you save LESS it will create a .min.css file too.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top