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

postcss.pxtransform.config.baseFontSize 参数无效 #12449

Closed
linhaobin opened this issue Sep 7, 2022 · 1 comment · Fixed by #12460
Closed

postcss.pxtransform.config.baseFontSize 参数无效 #12449

linhaobin opened this issue Sep 7, 2022 · 1 comment · Fixed by #12460
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@linhaobin
Copy link
Contributor

相关平台

微信小程序

复现仓库

https://gith
**小程序基础库: **
使用框架: React

复现步骤

cosnt config = {
  h5: {
    alias,
    postcss: {
      pxtransform: {
        enable: true,
        config: {
          baseFontSize: 16,
        },
      },
}

期望结果

baseFontSize=16

实际结果

baseFontSize=undefined

环境信息

👽 Taro v3.5.0

可能影响的代码

const baseFontSize = options.baseFontSize || (options.minRootSize >= 1 ? options.minRootSize : 20)
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Sep 7, 2022
@FE92star
Copy link
Contributor

FE92star commented Sep 8, 2022

看起来是这里取值的问题,可以提一个pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants