SASS/TFS best practice

萝らか妹 提交于 2021-01-28 06:08:34

问题


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.

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


回答1:


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.

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



来源:https://stackoverflow.com/questions/13251823/sass-tfs-best-practice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!