const autoprefixer = require('autoprefixer') // 引入 uni-app 的 postcss 插件来处理 rpx 转换 // 使用 postcss.plugin 旧版 API (postcss-loader 3.x 兼容) const postcss = require('postcss') const uniappPlugin = require('@dcloudio/vue-cli-plugin-uni/packages/postcss') module.exports = { plugins: [ uniappPlugin, autoprefixer ] }