美文网首页前端学习记录笔记
No PostCSS Config found in...

No PostCSS Config found in...

作者: VictoriaZsj | 来源:发表于2018-08-08 16:56 被阅读0次

项目在本地运行不报错,上传到 GitHub 之后,再 clone 到本地,执行:

这时报错 Error: No PostCSS Config found in... 


解决:

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

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

在npm上查到的postcss配置在webpack.config.js,

postcss.config.js是针对webpack3.0做的特殊处理

相关文章

网友评论

    本文标题:No PostCSS Config found in...

    本文链接:https://www.haomeiwen.com/subject/yvyxbftx.html