Multi-entry project, PC side does not need to convert, look at the configuration of the official website for a long time, and then look at the source code to find that the need to pass the regular postcss.config.js configuration

module.exports = { plugins: { autoprefixer: {}, 'postcss-pxtorem': {// The value is generally 1/10 of the design value, because the vant framework is used, 37.5 is recommended, many companies design value is 750, can be set to 75, // the property to be converted propList: [' * '], / / not to convert the px selector selectorBlackList: [], / / here you can write the name of the multiple folders in the middle is separated with a | exclude: /(\/|\\)(node_modules|page|official)(\/|\\)/ } } }Copy the code