module.exports = { plugins: [ require('autoprefixer')//自动添加css前缀 ] };
在项目根目录新建postcss.config.js文件,添加上述内容。
postcss.config.js