pcdotfan / taro-plugin-tailwind

Taro 接入 tailwindcss 插件
https://taro-ext.jd.com/plugin/view/5fbb3a0799370e09266e2d68
MIT License
134 stars 11 forks source link

css 的像素规则是否可以实现像 taro 那样,即小程序编译成 rpx、h5 编译成 rem #88

Open qq31311137 opened 2 years ago

qq31311137 commented 2 years ago

目前在小程序编译后单位默认还是 rem,是否可以判断不同的端分别编译成 rpx 或 rem

MellowCo commented 1 year ago

可以试试 unocss https://github.com/MellowCo/unocss-preset-weapp/tree/main/examples/taro_webpack4_vue3