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.04k stars 406 forks source link

When I set the 'selectorBlackList' and 'mediaQuery', '@keyframes' is still converted. #51

Open tuhongwei opened 4 years ago

tuhongwei commented 4 years ago

My config is like this: "postcss-px-to-viewport": { viewportWidth: 750, viewportHeight: 1334, unitPrecision: 3, viewportUnit: 'vw',W selectorBlackList: ['.usepixel'], minPixelValue: 1, mediaQuery: true } When I add the class 'usepixel', the ‘@keyframes' is still converted vw.