📦 组件自动化加载
📑 pinia+适用于多端的持久化方案
🎨 UnoCSS - 高性能且极具灵活性的即时原子化 CSS 引擎
🔥 使用 新的 <script setup> 语法
📥 API 自动加载 - 直接使用 Composition API 无需引入
🦾 TypeScript & ESLint & stylelint - 保证代码质量
🗂 husky & lint-staged + commitlint - 保证代码提交质量
🗂 ES6 import 顺序自动排序,css 属性自动排序,增强编码一致性
🗂 使用请求拦截器,封装好您的请求
🗂 图片自动压缩,再也不用去tinyPng等网站压缩图片了
🗂 多环境配置分开,想则怎么配置就怎么配置
git 拉取
github:git clone https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp
gitee:git clone https://gitee.com/fly-vue3-templates/vue3-uniapp-template.git fly-uniapp
degit 拉取(不包含git,需要自己git init)
npx degit https://github.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp
(degit 不支持 gitee)npx degit https://gitee.com/fly-vue3-templates/vue3-uniapp-template fly-uniapp
pnpm dev:h5, 然后打开 http://localhost:9000/。pnpm dev:mp-weixin 然后打开微信开发者工具,导入本地文件夹,选择本项目的dist/dev/mp-weixin 文件。pnpm dev:app, 然后打开 HBuilderX,导入刚刚生成的dist/dev/app 文件夹,选择运行到模拟器,或者运行的安卓/ios基座。

pnpm build:h5,打包后的文件在 dist/build/h5,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 vite.config.ts 的 base 属性进行配置。vite官网

pnpm build:h5, 打包后的文件在 dist/build/mp-weixin,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。pnpm build:app, 然后打开 HBuilderX,导入刚刚生成的dist/build/app 文件夹,选择发行 - APP云打包。