1.新建的vue项目启动后报错
No PostCSS Config found in: /Library/WebServer/Documents/WebserveProjects/shopapp-wechat/node_module

2.此时需要对webpack 3.0进行配置
postcss.config.js是针对webpack3.0做的特殊处理。
在项目根目录新建postcss.config.js文件,并对postcss进行配置:
module.exports = {
plugins: {
'autoprefixer': {browsers: 'last 5 version'}
}
}
本文介绍了解决新建Vue项目在使用Webpack3时启动报错的问题,详细说明了如何配置postcss.config.js文件,以确保项目的正确运行。
1089

被折叠的 条评论
为什么被折叠?



