cuth / postcss-pxtorem

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

fix #61 exclude option #62

Open cxy930123 opened 3 years ago

zhang156 commented 3 years ago

+1

wzdxy commented 3 years ago

+1 I spent the whole afternoon debugging this bug. I found this PR when I was about to modify the source code.

wzdxy commented 3 years ago

When exclude is a function filePath.match(exclude) always returns null , then all files be excluded

cuth commented 3 years ago

Could you write a unit test to support this change?

defghy commented 2 years ago

+1