【问题标题】:create-react-app giving warning about golden age of prefix-less CSS, how to fix?create-react-app 对无前缀 CSS 的黄金时代发出警告,如何解决?
【发布时间】:2020-12-05 19:42:00
【问题描述】:

你好,时间旅行者。我们正处于无前缀 CSS 的黄金时代,您的样式表不再需要 Autoprefixer。

其他解决方案谈论直接更新文档但没有用,加上这是一个 create-react-app,有没有办法?

【问题讨论】:

标签: reactjs create-react-app


【解决方案1】:

更新create-react-app 脚本使用的react-scripts 用于那个 项目

npm install react-scripts@latest

对于新的应用程序,这不是问题

npx create-react-app my-app

将获得 最新的 react-scripts 版本

所以基本上这只是较旧的 create-react-app 版本(即所有应用程序老化)的问题。

【讨论】:

    猜你喜欢
    • 2017-08-23
    • 2018-12-17
    • 2019-05-09
    • 2021-12-28
    • 2011-12-03
    • 2019-06-08
    • 2020-11-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多