利用uniapp
+ windicss
+ ts
+ vite
搭建的一套基础模板
- windicss以及flex布局的css工具拓展
- pinia + localStorage 持久化处理,记录用户信息
- 统一的request api请求处理
- 自定义的tabBar,支持各种样式
背景:windicss真的爽,不接受反驳
命令行执行yarn
或者npm i
,安装所需依赖
yarn dev:h5
yarn dev:mp-weixin
然后打开微信开发者工具选择/dist/dev/mp-weixin
文件夹
yarn build:mp-weixin
然后打开微信开发者工具选择/dist/build/mp-weixin
文件夹
h5 build 的时候,会出现样式丢失问题(不会吧,真的有人用uniapp开发h5)。 如下 live demo
dcasia/mini-program-tailwind 超好用的windicss转译插件
🔗 链接:github
tobe-fe-dalao/fast-vue3 本项目大量借鉴了该项目
🔗 链接:github