模极社社区 - 制造业全产业链交流平台

    • 登录
    • 版块
    • 最新
    • 话题
    • 热门
    • 用户
    • 群组

    Browserslist——模具行业从业者必备知识手册

    社区公告
    1
    1
    1
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      system 2 最后由 编辑

      <h2>Browserslist</h2>

      <p><img width="120" height="120" alt="Browserslist logo by Anton Popov"</p>
      <p> src="https://browsersl.ist/logo.svg" align="right"></p>

      <p>The config to share target browsers and Node.js versions between different</p>
      <p>front-end tools. It is used in:</p>

      <ul>
      <li>[Autoprefixer]</li>
      <li>[Babel]</li>
      <li>[postcss-preset-env]</li>
      <li>[eslint-plugin-compat]</li>
      <li>[stylelint-no-unsupported-browser-features]</li>
      <li>[postcss-normalize]</li>
      <li>[obsolete-webpack-plugin]</li>
      </ul>

      <p>All tools will find target browsers automatically,</p>
      <p>when you add the following to <code>package.json</code>:</p>

      <pre><code>
      "browserslist": [
      "defaults and fully supports es6-module",
      "maintained node versions"
      ]
      </code></pre>

      <p>Or in <code>.browserslistrc</code> config:</p>

      <pre><code>

      Browsers that we support

      defaults and fully supports es6-module
      maintained node versions
      </code></pre>

      <p>Developers set their version lists using queries like <code>last 2 versions</code></p>
      <p>to be free from updating versions manually.</p>
      <p>Browserslist will use [<code>caniuse-lite</code>] with [Can I Use] data for this queries.</p>

      <p>You can check how config works at our playground: <a href="https://browsersl.ist/"><code>browsersl.ist</code></a></p>

      <p><a href="https://browsersl.ist/"></p>
      <p> <img src="/img/screenshot.webp" alt="browsersl.ist website"></p>
      <p></a></p>

      <p><br></p>
      <p><br></p>
      <p><div align="center"></p>
      <p> <a href="https://evilmartians.com/?utm_source=browserslist"><img src="upload://bi3Pic0Egp9y2dqhlo4snbX0PB.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a> <a href="https://cube.dev/?ref=eco-browserslist-github"><img src="upload://slC6csnCGADVh5HdjO8TLkFZqhu.svg" alt="Supported by Cube" width="227" height="46"></a></p>
      <p></div></p>

      <p>[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features</p>
      <p>[obsolete-webpack-plugin]: https://github.com/ElemeFE/obsolete-webpack-plugin</p>
      <p>[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat</p>
      <p>[postcss-preset-env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env</p>
      <p>[postcss-normalize]: https://github.com/csstools/postcss-normalize</p>
      <p>[<code>browsersl.ist</code>]: https://browsersl.ist/</p>
      <p>[<code>caniuse-lite</code>]: https://github.com/ben-eb/caniuse-lite</p>
      <p>[Autoprefixer]: https://github.com/postcss/autoprefixer</p>
      <p>[Can I Use]: https://caniuse.com/</p>
      <p>[Babel]: https://github.com/babel/babel/tree/master/packages/babel-preset-env</p>

      <h3>Docs</h3>
      <p>Read full docs <strong><a href="https://github.com/browserslist/browserslist#readme">here</a></strong>.</p>

      <hr>

      <p>本文由模极社发布</p>

      <hr>
      <h4>🔗 你可能还感兴趣</h4>
      <ul>
      <li><a href="/t/4543/4543">@jridgewell/trace-mapping</a></li>
      <li><a href="/t/2742/2742">油缸式针阀热流道</a></li>
      <li><a href="/t/4064/4064">2026年3月19日 工作记录</a></li>
      </ul>

      <hr>
      <p><strong>相关推荐:</strong></p>
      <ul>
      <li><a href="https://www.mj7.cn/t/4836-4836">北京模具产业 — 科技研发驱动型模具基地</a></li>
      <li><a href="https://www.mj7.cn/t/4835-4835">上海模具产业 — 高端精密模具研发中心</a></li>
      <li><a href="https://www.mj7.cn/t/4834-4834">产业集群与模具产业发展的关系</a></li>
      </ul>

      <hr>
      <p>你们厂里是怎么处理的?来评论区聊聊。</p>

      1 条回复 最后回复 回复 引用 0
      • First post
        Last post
      Powered by NodeBB | Contributors