Vue-cli3 Replace Autoprefixer browsers option to Browserslist config报错解决

使用vue-cli3搭建的项目,报了几十个错误

报错内容:

Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.

Using browsers option cause some error. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.

If you really need to use option, rename it to overrideBrowserslist.

Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist

Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.

Using browsers option cause some error. Browserslist config 
can be used for Babel, Autoprefixer, postcss-normalize and other tools.

If you really need to use option, rename it to overrideBrowserslist.

Learn more at:
  https://github.com/browserslist/browserslist#readme
  https://twitter.com/browserslist
Vue-cli3 Replace Autoprefixer browsers option to Browserslist config报错解决_第1张图片
image.png

解决方法:

去掉postcss的autoprefixer段代码,即删除以下代码段

"postcss": {
    "plugins": {
      "autoprefixer": {}
    }
  }

你可能感兴趣的:(Vue-cli3 Replace Autoprefixer browsers option to Browserslist config报错解决)