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 #132

Open hulh122 opened 2 years ago

hulh122 commented 2 years ago

when i use postcss-px-to-viewport@1.1.1 in postcss@8.4 and changed landscape to true it goes wrong with postcss.atRule is not a constructor hope to fix this

cathats commented 1 year ago

index.js里面把atRule改成AtRule

g707175425 commented 1 year ago

我通过用postcss.AtRule覆盖了postcss.atRule解决了,目前不知道会不会有其他问题...

image
wxlzmt commented 3 months ago

我通过用postcss.AtRule覆盖了postcss.atRule解决了,目前不知道会不会有其他问题... image

我试着改了 postcss.config.js ,没用