1.说明
这个应该是项目一上来就要处理的,但是我手撕Vben
的时候,按照配置文件的顺序下来,到现在才处理了。
2.创建Git忽略文件
根目录下创建:.gitignore
文件。
node_modules
.DS_Store
dist
dist-ssr
*.local
# other
.npmrc
.cache
test/upload-server/static
.local
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
# .vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
上一章
第十一章-自定义ESLint检查规则
下一章
第十三章-安装ls-lint