lkxian888 / postcss-px-to-viewport-8-plugin

解决 postcss-px-to-viewport 控制台输出: postcss.plugin was deprecated. Migration guide:
170 stars 29 forks source link

include option not working #8

Open xiaojundebug opened 1 year ago

chengazhen commented 1 year ago

I have also encountered the same problem

QinZhen001 commented 9 months ago

I have also encountered the same problem

Mrcxt commented 8 months ago

同样的问题

chengazhen commented 7 months ago

如果你是用的是unocss那是正常的,它的路径不跟随vue文件路径,所以无法匹配的

Mrcxt commented 7 months ago

如果你是用的是unocss那是正常的,它的路径不跟随vue文件路径,所以无法匹配的

我用的是react+unocss。我不太懂unocss,你意思是说unocss会跟include产生冲突吗

chengazhen commented 7 months ago

如果你是用的是unocss那是正常的,它的路径不跟随vue文件路径,所以无法匹配的

我用的是react+unocss。我不太懂unocss,你意思是说unocss会跟include产生冲突吗

这个注定不能使用了, 因为 unocss 最终生成的是一个类似与 global.css 文件, 并不是根据你的 react 文件来分别生成 x.css b.css 文件, 所以include 无法匹配

panykiller commented 3 months ago

After reading the author's source code, it seems that this feature has not been implemented