vue项目打包git提交后,在线上看不到dist文件夹

问题描述:项目写完后,打包提交到测试环境,发现dist文件夹在本地,并没有提交到测试服务器,

问题原因:

vue项目在git打包上传过程中,为了节约包体积,会禁止dist的上传,

解决办法:

打开文件列表中的.gitigone文件

.DS_Store
node_modules/

/dist/

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln

把其中的dist给删掉就好了

发布了17 篇原创文章 · 获赞 5 · 访问量 9027

猜你喜欢

转载自blog.csdn.net/heyNewbie/article/details/103991594