Should bower_components be gitignored?

后端 未结 6 1683
悲哀的现实
悲哀的现实 2020-12-22 18:46

Would it be good practice to keep only the bower.json file and gitignore the whole bower_components directory?

6条回答
  •  情深已故
    2020-12-22 18:53

    The .gitignore file in a newly generated Yeoman AngularJS project has bower_components (and node_modules) listed to be ignored (if you don't know Yeoman it is a very reputable web scaffolding tool for modern webapps, so that's good enough for me!):

    .gitignore

    node_modules
    dist
    .tmp
    .sass-cache
    bower_components
    

提交回复
热议问题