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

设置 include unocss 无法转换 #33

Open
AuYuHui opened this issue Apr 24, 2024 · 9 comments
Open

设置 include unocss 无法转换 #33

AuYuHui opened this issue Apr 24, 2024 · 9 comments

Comments

@AuYuHui
Copy link

AuYuHui commented Apr 24, 2024

image

@wswmsword
Copy link
Owner

可能顺序要变一下,试下把 unocssPs() 放到数组最后行不行。

@AuYuHui
Copy link
Author

AuYuHui commented Apr 24, 2024

不行,试了

@AuYuHui
Copy link
Author

AuYuHui commented Apr 24, 2024

设置 include 后 媒体查询模式页失效

@wswmsword
Copy link
Owner

include 的逻辑我记得是只有 include 包括的页面才转换,其他页面不转换,你的意思是 include 里的页面(/views/mobile-detail)没有转换成媒体查询最大宽度吗?

@AuYuHui
Copy link
Author

AuYuHui commented Apr 24, 2024

s

include 的逻辑我记得是只有 include 包括的页面才转换,其他页面不转换,你的意思是 include 里的页面(/views/mobile-detail)没有转换成媒体查询最大宽度吗?

是的,

@wswmsword
Copy link
Owner

unocssPs() 去掉就能转换吗?

@AuYuHui
Copy link
Author

AuYuHui commented Apr 24, 2024

unocssPs() 去掉就能转换吗?

也不行。

@wswmsword
Copy link
Owner

ok,我最近有点忙,会抽空看下,可能回复较慢,我主要看下我本地运行 include 会不会转换包括的文件,不转换不包括的文件,如果能验证可能就是你的 include 路径有问题了。

@wswmsword
Copy link
Owner

您的操作系统是 Windows 吗,是的话正则匹配要注意路径分隔符号,include: /views[\\/]mobile-detail/,这样再试试。

写了个只有 include 的范例,不会转换 include 以外的文件。

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