Giter VIP home page Giter VIP logo

Comments (5)

MellowCo avatar MellowCo commented on May 31, 2024 2

unocss-preset-weapp 是基于 @unocss/preset-mini 修改的,为了满足小程序,将默认单位 rem 改为 rpx ,并修改了一些预设。

unocss-preset-uni 是基于 @unocss/preset-wind 修改的

在对转义类名的处理上,unocss-preset-weappunocss-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 作为插件入口,所以可以同时兼容 webpackvite , uniapp vue2 , taro 都能使用

在 uniapp vue3 vite上,两个都是够用的

from unocss-preset-uni.

zguolee avatar zguolee commented on May 31, 2024 1

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.

liwenfengg avatar liwenfengg commented on May 31, 2024

from unocss-preset-uni.

zguolee avatar zguolee commented on May 31, 2024

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.

liwenfengg avatar liwenfengg commented on May 31, 2024

好滴,我了解了,谢谢你 @MellowCo 以及 @zguolee

from unocss-preset-uni.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.