webpack 打包报错 No PostCSS Config found in

解决方案

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

module.exports = {
    plugins: [
        require('autoprefixer')//自动添加css前缀
    ]
};
简单实用搞定
posted @ 2018-06-29 16:56  rainpin  阅读(564)  评论(0编辑  收藏  举报