autoprefixer icon indicating copy to clipboard operation
autoprefixer copied to clipboard

Include additional browser choices in updater coffeescript file

Open jamespatrickwhite opened this issue 13 years ago • 7 comments

Currently the update script updaters/lib/updater.coffee generates data for Firefox, Chrome, Safari, iOS, Opera, and IE. For mobile development work, it would help to also have supported android and bb identifiers added to the browsers: object.

  # Can I Use browser names to internal
  browsers:
    firefox: 'ff'
    chrome:  'chrome'
    safari:  'safari'
    ios_saf: 'ios'
    opera:   'opera'
    ie:      'ie'
    android: 'android'
    bb:      'bb'

jamespatrickwhite avatar May 24 '13 19:05 jamespatrickwhite

This is very interesting question :).

Does we really need old Android browser, because new Android use Chrome (with the same version).

ai avatar May 24 '13 20:05 ai

I will add old mobile browsers to data, but Autoprefixer will use it, only if you manually select them in browsers list. Is this API is god for you?

ai avatar May 24 '13 20:05 ai

I would say yes for a couple of reasons:

Even with the newest versions of Android (4.2), the default native browser still isn't "Chrome for Android", which as a different browser requires it to be downloaded by the end user, and also has different levels of HTML5 support. CanIUse.com keeps "Chrome for Android" separate with the and_chr identifier instead of android or chrome.

The bb browser identifier in this case corresponds to both the BlackBerry 7 browser (old), as well as the BB10 browser (very new).

Adding android and bb to the update script above also helps developers using PhoneGap, which for the time being uses only the platform's native browser implementation.

jamespatrickwhite avatar May 24 '13 20:05 jamespatrickwhite

Yes, selecting them from the browsers list with the -b option would be okay I think.

jamespatrickwhite avatar May 24 '13 20:05 jamespatrickwhite

OK, try to add this after this weekend.

ai avatar May 25 '13 03:05 ai

Done 03f9ed034c4080e898ca17a2ede408e01adceda8

I will release it tomorrow.

ai avatar May 27 '13 07:05 ai

Done, released in version 0.4.20130528. Blackberry and Android browsers can be selected only manually:

Autoprefixer.compile(css, ['bb 10', 'android 4'])

ai avatar May 27 '13 19:05 ai