cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.06k stars 172 forks source link

Plugin doesn't work with @font-face #14

Closed visionpixel closed 9 years ago

visionpixel commented 9 years ago

This great plugin doesn't work with the @font-face declaration.

My config is an empty array in prop_white_list. selector_black_list doesn't filter the font-face.

Here is the error:

TypeError: Cannot call method 'match' of undefined
    at node_modules/postcss-pxtorem/index.js:72:25
    at Array.some (native)
    at blacklistedSelector (node_modules/postcss-pxtorem/index.js:71:22)

Greetings

cuth commented 9 years ago

The fix is in version 2.3.2 and published to NPM. Let me know if it works for you.

visionpixel commented 9 years ago

Nice, it works! Thanks.