SASS/TFS最佳实践 [英] SASS/TFS best practice
问题描述
我得到了工作场所的同意,同意使用SASS/Compass,我们在带有TFS服务器的ASP.NET MVC3中工作.我担心的是,当我们三个前端开发人员在同一站点上同时编写SASS时,这会引起问题.
I got my workplace to agree to using SASS/Compass and we work in ASP.NET MVC3 with a TFS server. My concern is when the 3 of us front end developers are working on the same site at the same time writing SASS it's going to cause issues.
其他人是否有使用SASS和TFS的工作流程经验?您遇到了什么问题?您是如何解决它们的?建议将不胜感激
Does anyone else have workflow experience using SASS and TFS? What kind of issues did you run into? How did you solve them? Suggestions would be very appreciated
推荐答案
我建议不要将生成的css文件检查到源代码管理中,而是将mvc4中的捆绑功能与
I would recommend not checking the resulting css file into source control, but to use the bundling feature in mvc4 along with a sass nuget package to generate the css file on the server. That way you don't need to deal with merging the css file when you get latest or check in, it also gets around some of the headaches you'll get with exclusive checkouts turned on.
还要确保启用了最小化设置,SassAndScssSettings上似乎有一个UseNativeMinification属性,它是从webconfig bundleTransformer/sassAndScss创建的
Also make sure you enable the minification setting, there appears to be a property UseNativeMinification on SassAndScssSettings which is created from the webconfig bundleTransformer/sassAndScss
这篇关于SASS/TFS最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!