Reputation: 3164
We use Web Essentials in our Visual Studio project, and we use a main Site.Less file that compiles into Site.css, and Site.css.map & Site.min.css.
Because Less is a new technology to some team members we sometimes get people writing code into the Site.css file and checking that in. Recently we had a week's worth of changes that got overwritten because somebody else changed the Less file, compiled and checked in. Thankfully the history kept the .css changes.
Is there a way to prevent the Site.css file, which is underneath Site.less, from being checked in? This would serve as a reminder that people need to edit the Less file and not the CSS file.
Upvotes: 0
Views: 1019
Reputation: 5716
Git has .gitignore
to prevent watching for edits in Site.css
.
If you're using Team Foundation Server, please, see this old similar question. Accepted answer is another one, but in my opinion this is answer you're looking for.
In short:
Look at the link to further details.
Upvotes: 1
Reputation: 58990
Team Foundation Server version control (TFVC) supports a .tfignore
file if you're using local workspaces. See MSDN for more information on the format of .tfignore
Upvotes: 1