可以将Web Essentials配置为不向Visual Studio项目添加* .css文件吗? [英] Can Web Essentials be configured to NOT add *.css files to Visual Studio project?

查看:66
本文介绍了可以将Web Essentials配置为不向Visual Studio项目添加* .css文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Visual Studio + Web Essentials将LESS文件编译为CSS.每当我们更改LESS文件时,Web Essentials都会坚持创建* .css,*.min.css和* .css.map文件并将其添加到Visual Studio项目文件中.

We are using Visual Studio + Web Essentials to compile LESS files to CSS. Whenever we change a LESS file Web Essentials insists on creating a *.css, *.min.css and a *.css.map file AND add them to the Visual Studio project file.

我们不想将这些文件检入到源代码管理中,就像我们不检入dll文件一样.

We don't want to check-in these files to Source Control the same as we don't check-in dll files.

所以我的问题是:我们可以将Web Essentials配置为不添加* .css& * .css.map到VS项目?

So my question is: Can we configure Web Essentials to NOT add *.css & *.css.map to VS project?

推荐答案

否. Web Essentials会将生成的CSS文件添加到VS Project.

No. Web Essentials will add the generated CSS files to the VS Project.

您可以使用 dotless 在构建时生成CSS文件,而无需添加它们VS项目.

You can use dotless to generate CSS files on build without adding them to the VS project.

这篇关于可以将Web Essentials配置为不向Visual Studio项目添加* .css文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆