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

has config like pxtorem propList ? #12

Closed wangjinyang closed 5 years ago

wangjinyang commented 5 years ago

link https://www.npmjs.com/package/postcss-pxtorem

propList (Array) The properties that can change from px to rem. Values need to be exact matches. Use wildcard to enable all properties. Example: [''] Use at the start or end of a word. (['position'] will match background-position-y) Use ! to not match a property. Example: ['', '!letter-spacing'] Combine the "not" prefix with the other prefixes. Example: ['', '!font']

chernobelenkiy commented 5 years ago

@wangjinyang we've added PR with that option, now you can use it freely with the package version 1.0.0.