npm run build报错 No PostCSS Config found in

在项目根目录新建postcss.config.js文件,并对postcss进行配置:

module.exports = {
    plugins: [
        require('autoprefixer')//自动添加css前缀
    ]
};
原文地址:https://www.cnblogs.com/xulei1992/p/11811836.html