webpack 打包报错 No PostCSS Config found in

解决方案

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

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

猜你喜欢

转载自www.cnblogs.com/rainlink/p/9244309.html