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

后端 未结 5 1345
陌清茗
陌清茗 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 04:47

    For ignoring only files, you can use underscore at the file name.

    Web Essentials has an internal convention whereby files beginning with an underscore will not be saved to CSS.

    This is actually quite useful. You don’t want your variables.less or mixins.less files being saved as variables.css or mixins.css. So in this case, name them _variables.less and _mixins.less. They will be compiled (and thus checked for correct syntax) but won’t take up space on disk or in source control as redundant CSS files.

    https://medium.com/@brendaningram/web-essentials-not-saving-css-files-a450b8c2d23a

提交回复
热议问题