美文网首页
Vue-cli3 Replace Autoprefixer br

Vue-cli3 Replace Autoprefixer br

作者: Phoenixing | 来源:发表于2019-11-19 12:24 被阅读0次

    使用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
    
    image.png

    解决方法:

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

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

    相关文章

      网友评论

          本文标题:Vue-cli3 Replace Autoprefixer br

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