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
3.07k stars 405 forks source link

postcss-px-to-viewport: postcss.plugin was deprecated. #174

Open axolo opened 9 months ago

axolo commented 9 months ago

postcss-px-to-viewport: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration Re-optimizing dependencies because lockfile has changed

zoujingli commented 7 months ago

176 使用 poscss 8.x 做了一个插件,试试这个。

npm i postcss-unit-unit --save

参数与这个插件一样

luoriwusheng-xia commented 3 months ago

recomand use postcss-px-conversion