aliyun / alibabacloud-alfa

阿里云微前端解决方案
https://aliyun.github.io/alibabacloud-alfa
MIT License
846 stars 83 forks source link

postcss-prefix-wrapper 对 font-family 处理有误 #63

Closed Cweili closed 3 years ago

Cweili commented 3 years ago

配置:

postcssPrefixWrapper({
  stackableRoot: '.A-B',
  repeat: 1,
  overrideIds: false,
}),

源码:

.a {
  font-family: inherit;
}

.b {
  font-family: -apple-system;
}

编译后:

.A-B .a {
  font-family: .ABinherit;
}

.A-B .b {
  font-family: .AB-apple-system;
}
Boelroy commented 3 years ago

postcss-prefix-wrapper@1.0.20 已经修复 可以尝试重新安装 😘