postcss.config.js 305 B

12345678910111213
  1. module.exports = {
  2. plugins: {
  3. 'postcss-px-to-viewport': {
  4. viewportWidth: 375,
  5. },
  6. 'postcss-pxtorem': {
  7. rootValue({ file }) {
  8. return file.indexOf('vant') !== -1 ? 37.5 : 75;
  9. },
  10. propList: ['*'],
  11. },
  12. },
  13. };