cuth / cuth/postcss-pxtorem

vite+scss+vant rootValue not match file

Open
#110 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

```
module.exports = {
plugins: {
'postcss-pxtorem': {
rootValue({ file }) {
console.log(file, file.includes('node_modules/vant'))
return file.includes('node_modules/vant') ? 37.5 : 75;
},
propList: ['*'],
},
},
}
```

image

image

image

image

image

image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.