admin管理员组

文章数量:1398999

How do I target IE9 and above with grunt autoprefixer? Can I do something like the following:

  grunt.config('autoprefixer', {
    options: {
      browsers: ['IE9+']
    },
    dist: {
      expand: true,
      src: '/styles/app.css'
    }
  });

How do I target IE9 and above with grunt autoprefixer? Can I do something like the following:

  grunt.config('autoprefixer', {
    options: {
      browsers: ['IE9+']
    },
    dist: {
      expand: true,
      src: '/styles/app.css'
    }
  });
Share Improve this question asked Jul 22, 2014 at 4:21 AndrewAndrew 5,7155 gold badges37 silver badges41 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

The syntax for the browsers option can be found in the main Autoprefixer documentation. The relevant bits are:

  • Firefox >= 20 is Firefox version 20 or newer.

And:

Browsers names (case insensitive):

  • ...
  • Explorer or ie for Internet Explorer.

Hence, in order to target IE9 and newer, use:

options: {
  browsers: ['ie >= 9']
},

本文标签: javascriptHow do I target IE9 and above with grunt autoprefixerStack Overflow