Open
Description
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.
'postcss-pxtorem': {
rootValue: 37.5,
propList: ['*'],
unitPrecision: 5,
exclude: (file) => {
const BLACK_LIST = [
// cause error
'pages/patient-report/fang'
]
return BLACK_LIST.some(item => file.indexOf(item) !== -1)
}
}
When I execute the plugin, I will get the following errors,I think the error occurs when call the function filePath.match(exclude)
.
Metadata
Metadata
Assignees
Labels
No labels