postcss.config.js 386 B

1234567891011121314151617181920
  1. module.exports = {
  2. plugins: {
  3. 'postcss-pxtorem': {
  4. rootValue: 37.5,
  5. propList: ['*']
  6. }
  7. }
  8. }
  9. // module.exports = {
  10. // plugins: {
  11. // // postcss-pxtorem 插件的版本需要 >= 5.0.0
  12. // 'postcss-pxtorem': {
  13. // rootValue ({ file }) {
  14. // return file.indexOf('vant') !== -1 ? 37.5 : 75
  15. // },
  16. // propList: ['*']
  17. // }
  18. // }
  19. // }