移动端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

4 年前
1234567891011121314151617181920
  1. const autoprefixer = require('autoprefixer');
  2. const pxtorem = require('postcss-pxtorem');
  3. module.exports = ({ file }) => {
  4. let remUnit
  5. if (file && file.dirname && file.dirname.indexOf('vant') > -1) {
  6. remUnit = 37.5
  7. } else {
  8. remUnit = 75
  9. }
  10. return {
  11. plugins: [
  12. autoprefixer(),
  13. pxtorem({
  14. rootValue: remUnit,
  15. propList: ['*'],
  16. selectorBlackList: ['van-circle__layer']
  17. })
  18. ]
  19. }
  20. }