npm run build 报错 Error: No PostCSS Config found in...

module.exports = {
    plugins: [
        require('autoprefixer')//自动添加css前缀
    ]
};

在项目根目录新建postcss.config.js文件,添加上述内容。

猜你喜欢

转载自www.cnblogs.com/xulei1992/p/11833560.html