# pt-vue3-vite-vant **Repository Path**: Thyiad/pt-vue3-vite-vant ## Basic Information - **Project Name**: pt-vue3-vite-vant - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-12 - **Last Updated**: 2023-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pt-vite-vue3 ### 基于 vite 项目模板 - master > spa: vite + element-plus - mobile > spa: vite + vant ### 一些注意点 - 如果 run 起来报这个错:`Error: esbuild: Failed to install correctly`,参考这个链接:https://www.jianshu.com/p/dc85066fe1fe > `node node_modules/esbuild/install.js` - husky ```bash npm install husky --save-dev npx husky install # 如果要安装到子目录中,需要 husky install frontend/.husky npm set-script prepare "husky install" # 如果是子目录,需要在子目录中运行: npm set-script prepare "cd .. && husky install frontend/.husky" npx husky add .husky/pre-commit "npx --no-install pretty-quick --staged" # 如果是子目录,需要在具体命令前加上 cd frontend,比如.husky/pre-commit npx husky add .husky/commit-msg "npx --no-install commitlint --edit $1" # 怪事,$1加不进去,所以要手动改一下.husky/pre-commit里面的内容 ```