Things I put in .gitignore file for Vue.js projects

in Code Write a comment

In this article, I’ll share a .gitignore file that I use for my Vue.js projects.

.DS_Store
node_modules/
/dist
/public

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor settings
.vscode

It’s a good practice to ignore editor-specific config files to avoid conflicts with other developers. I’m using Visual Studio Code (as you can see in the .gitignore file above).

If you’re using Sublime Text, Atom or any other editor you should update your .gitignore file accordingly.

If you find this post useful, please let me know in the comments below and subscribe to my newsletter. 
Cheers,
Renat Galyamov

Want to share this with your friends?
👉renatello.com/vue-js-gitignore

PS: Make sure you check other Vue.js tutorials, e.g. how to password protect your website in Vue.js, how to deploy Vue.js app to Firebase hosting and top 10 most popular Vue.js tutorials.

Write a Comment

Comment