Module build failed: Error: No PostCSS Config found

使用vue框架写pc页面时,我们经常会用到element-ui这个框架。

当我们把需要的东西都装在好运行项目的时候,有时会出现这样的错误:

这是因为缺少了一个配置文件,postcss.config.js,配置内容如下

module.exports = {
plugins: {
'autoprefixer': {browsers: 'last 5 version'}
}
}

注意:这个文件是放在项目的根目录下的

致力于前端技术学习与分享,会及时更新博客。
原文地址:https://www.cnblogs.com/caoxueying2018/p/9844519.html