Scenario: vue builds a mobile page, and main.js introduces global css to report an error.
Reason: The problem caused by using postcss-px2rem and postcss-px2rem-exclude,
Solution: After uninstalling postcss-px2rem, install postcss-pxtorem. Set the following code in postcss.config.js, you can change the settings by yourself to solve the problem.
const autoprefixer = require('autoprefixer');
const px2rem = require('postcss-pxtorem');
module.exports = {
plugins: [autoprefixer(), px2rem({ rootValue: 75, unitPrecision: 5, propList: ['*'] })],
};