문제

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