evrone / postcss-px-to-viewport

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
https://evrone.com/postcss-px-viewport
MIT License
2.98k stars 401 forks source link

tailwind的class没有被转化 #170

Open xu-Aurora opened 6 months ago

xu-Aurora commented 6 months ago

在vue3+vite4项目中,我自己写的class是有被转成成vw、vh单位的,但tailwind写的class是没有被转化成vw、vh的。 比如我写class=“pr-[10px]”, 在审查元素里看到是padding-right:10px;

alinquan commented 3 months ago

在vue3+vite4项目中,我自己写的class是有被转成成vw、vh单位的,但tailwind写的class是没有被转化成vw、vh的。 比如我写class=“pr-[10px]”, 在审查元素里看到是padding-right:10px;

老哥解决没有,遇到同样的问题