Comments (5)
unocss-preset-weapp 是基于 @unocss/preset-mini 修改的,为了满足小程序,将默认单位 rem
改为 rpx
,并修改了一些预设。
unocss-preset-uni 是基于 @unocss/preset-wind 修改的
在对转义类名的处理上,unocss-preset-weapp
和 unocss-preset-uni
转换规则是不同的,所以会导致 bg-[#ccc]
失效
unocss-preset-weapp
-> bg--fl--w-ccc-rl- unplugin-transform-we-class
unocss-preset-uni
-> bg-l--h-ccc-r css-selector-transform
unplugin-transform-we-class 是用 unplugin 作为插件入口,所以可以同时兼容 webpack
和 vite
, uniapp vue2 , taro 都能使用
在 uniapp vue3 vite上,两个都是够用的
from unocss-preset-uni.
unocss-preset-uni
only support uni-app and WeChat, QQ mini-program, unocss-preset-weapp
support more and has a lot of customization, you can contact @MellowCo to get more information.
from unocss-preset-uni.
from unocss-preset-uni.
Not recommended for not testing(In the issue #4, the unocss-preset-weapp
author @MellowCo gives a solution to build app). The reason why using unocss-preset-uni
and unocss-preset-weapp
at the same time has no effect may be that some conversion rules or preset import order is different.
from unocss-preset-uni.
好滴,我了解了,谢谢你 @MellowCo 以及 @zguolee
from unocss-preset-uni.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unocss-preset-uni.