【问题标题】:Difference between autoprefixer used in bootstrap and the grunt-autoprefixer from gruntjs plugin pagebootstrap 中使用的 autoprefixer 和 gruntjs 插件页面中的 grunt-autoprefixer 之间的区别
【发布时间】:2015-02-28 11:45:48
【问题描述】:

为什么 bootstrap 不使用 grunt-autoprefixer ?

他们为什么使用另一个?

它们有什么区别?

我应该在自己的项目中使用哪一个?

/困惑

【问题讨论】:

    标签: twitter-bootstrap gruntjs autoprefixer


    【解决方案1】:

    Bootstrap 确实使用 grunt-autoprefixer,如 on the package.json 所示。

    如果你想得到完全相同的结果,你可以瞄准和 Bootstrap 一样的浏览器

    "autoprefixerBrowsers": [
      "Android 2.3",
      "Android >= 4",
      "Chrome >= 20",
      "Firefox >= 24",
      "Explorer >= 8",
      "iOS >= 6",
      "Opera >= 12",
      "Safari >= 6"
    ]
    

    (因为他们在configBridge.json

    将它们添加到您的gruntFile

    autoprefixer: {
      options: {
        browsers: [
          "Android 2.3",
          "Android >= 4",
          "Chrome >= 20",
          "Firefox >= 24",
          "Explorer >= 8",
          "iOS >= 6",
          "Opera >= 12",
          "Safari >= 6"
        ]
      },
      /** your subtasks here **/
    }
    

    【讨论】:

      猜你喜欢
      • 2016-03-29
      • 1970-01-01
      • 2015-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-01
      • 1970-01-01
      相关资源
      最近更新 更多