We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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).
filePath.match(exclude)
The text was updated successfully, but these errors were encountered:
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 } }
Sorry, something went wrong.
No branches or pull requests
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)
.The text was updated successfully, but these errors were encountered: