【问题标题】:React. How to add autoprefixer package in and config it?做出反应。如何添加 autoprefixer 包并进行配置?
【发布时间】:2018-09-09 05:18:52
【问题描述】:

我在整个互联网上搜索,但没有找到问题的答案 - 如何在生产版本中为我的 css 文件添加供应商前缀支持?

所以,我找到了两篇关于这个问题的文章,但它对我没有帮助`。

  1. https://medium.com/@kitze/configure-create-react-app-without-ejecting-d8450e96196a

  2. https://medium.com/@ruanjian/configure-css-for-create-react-app-8681c6eb5f00

【问题讨论】:

标签: css reactjs autoprefixer


【解决方案1】:

如果您通过脚本 create-react-app 创建了 React 应用程序,则不需要使用任何供应商前缀,它确实使用了 autoprefixer。

【讨论】:

    猜你喜欢
    • 2017-01-17
    • 2019-10-27
    • 1970-01-01
    • 2017-10-08
    • 2021-09-01
    • 2021-10-31
    • 1970-01-01
    • 2021-03-29
    • 2020-11-23
    相关资源
    最近更新 更多