Open ChrisMiaoMiao opened 1 year ago
Still not fixed? I use this way to avoid this error
'postcss-pxtorem': {
rootValue: 37.5,
propList: ['*'],
unitPrecision: 5,
exclude: (file) => {
return file.indexOf('index.html') !== -1 || file.indexOf('live') !== -1
}
}
I am using version "postcss-pxtorem": "^6.0.0" and I'm having the same issue. This is part of my config in postcss.config.js.
When I execute the plugin, I will get the following errors,I think the error occurs when call the function
filePath.match(exclude)
.