Skip to content
New issue

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

可以增加几个额外的配置项吗,比如有的属性我不想转换,有的类我不想转换,小于多少px就不转换了 #118

Open
changguilei opened this issue Jun 23, 2023 · 1 comment

Comments

@changguilei
Copy link

最好能完全覆盖postcss-pxtorem原有的配置项,因为我想让整个项目的风格统一

{
rootValue: 16,
unitPrecision: 5,
propList: ['font', 'font-size', 'line-height', 'letter-spacing'],
selectorBlackList: [],
replace: true,
mediaQuery: false,
minPixelValue: 0,
exclude: /node_modules/i
}

@Wxh16144
Copy link
Member

pr2rem 当初是我借鉴的 postcss-pxtorem 的, 最初是都支持的, 但是考虑暴露出去可能不方便后续维护, 按需加入. 如果目前需求盲注不了可以暂时自己写一个 transformer 满足业务. 呼声高的 api 可能会考虑加入到 cssinjs px2rem options 中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants