head-img Force's Blog

Module build failed: Error: No PostCSS Config found

JavaScript

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

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

2018060920404578.png

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

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

20180609204258742.png
这样配置好以后,再重新启动项目,就没有这方面的问题了。

转载自:https://blog.csdn.net/qq_41831345/article/details/80636053

点我评论
打赏本文
二维码


125

文章

14

标签

 访客统计  Update-******