问题
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