Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unocss 利用 Directives transformer写的样式 不能转化成 vw #47

Open
ljt990218 opened this issue Aug 6, 2024 · 5 comments
Open

Comments

@ljt990218
Copy link

WechatIMG42
WechatIMG43

@wswmsword
Copy link
Owner

不好意思回的慢了点。。。方便给个最小包不,这个 unocss 我还不太会用。感觉像 postcss 和 unocss 之间执行的顺序有关。

@ljt990218
Copy link
Author

不好意思回的慢了点。。。方便给个最小包不,这个 unocss 我还不太会用。感觉像 postcss 和 unocss 之间执行的顺序有关。

我在下面项目的 src/pages/index.vue 使用了这种写法
我也按你的思路看看 👀
unocss-transformer-test

@wswmsword
Copy link
Owner

应该是 transformerDirectives 不经过 postcss 转换,要适配貌似要实现一个 unocss 的转换插件。
MellowCo/unocss-preset-weapp#41 (comment)
unocss/unocss#2209
unocss/unocss#2176

@ljt990218
Copy link
Author

明白🫡

1 similar comment
@wswmsword
Copy link
Owner

明白🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants