cuth / postcss-pxtorem

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

fix: #93 exclude function parse error #94

Open ChrisMiaoMiao opened 1 year ago

ChrisMiaoMiao commented 1 year ago

I've attached simple fix to issue I mentioned https://github.com/cuth/postcss-pxtorem/issues/93.

Change exclude covert logics, when exclude option value is a function, it will not exec the following code

filePath.match(exclude) !== null