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

postCss.atRule is not a constructor #168

Open YingchenWang007 opened 7 months ago

YingchenWang007 commented 7 months ago

when add this

landscape: true, // 是否处理横屏情况 landscapeUnit: "vw", // 横屏模式下使用的单位 landscapeWidth: 667 // 横屏模式下的视口宽度

Because postcss AtRule

pxtoViewPort atRule

image image