How to ignore certain LESS files in Web Essentials LESS compiling? (Bootstrap)

后端 未结 5 1330
陌清茗
陌清茗 2020-12-31 04:37

I\'ve set up Web Essentials 2013 (in Visual Studio 2012) and loaded in the default Twitter Bootstrap LESS source files. Auto-build and minification is working perfectly, exc

5条回答
  •  一个人的身影
    2020-12-31 05:00

    Okay, I figured it out.

    What I initially wanted was LESS compilation on build, Web Essentials was so kind to do this on save. To deactivate this, in Visual Studio 2012 head over to Tools -> Options -> Web Essentials -> LESS and deactivate "Generate CSS file on save".

    a busy cat

    According to the Visual Studio Extension page for Web Essentials, minification on build works not by now, but will on future releases. I have to delete the .min.css files by myself and create it again on every build as it seems. :(

    Pro-tip for every dev:

    If you use any framework, tools, extensions etc. and your new super-powers don't work as expected, don't blame the extension, shut up and do it yourself.

提交回复
热议问题