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

['*', '!font-size'], #135

Open KittyPigeon opened 2 years ago

KittyPigeon commented 2 years ago

set proList such this:

const pxtovwConfig={ unitToConvert: 'px', fontViewportUnit: 'vw', viewportWidth: 750, unitPrecision: 5, proList: ['*', '!font-size'], minPixelValue:1, } but css' font-size is also set to vw;

victorWuxz commented 2 years ago

也遇到了同样的问题,用的是next.js

hemengke1997 commented 1 year ago

propList in fact