const path = require('path') module.exports = ({ file }) => { const designWidth = file.dirname.includes(path.join('node_modules', 'vant')) ? 37.5 : 72.0 return { plugins: { autoprefixer: {}, 'postcss-pxtorem': { rootValue: designWidth, propList: ['*'] } } } }