所以我将我的代码推送到Azure网站并准备好了这个.gitignore
文件,但它仍然将我的所有node_modules
文件夹内容推送到该网站:
# dependencies
/node_modules
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
不确定为什么会这样做。使用create-react-app
启动此项目并使用我的本地git初始推送到Azure。
为什么会这样?
我可以简单地删除appservice中的所有内容并重新推送吗?如果是这样,我不需要删除或重置以确保这个新的推送正确吗?
非常感谢。
更新:
这是关于节点模块的文件结构: