javascriptcssgruntjsautoprefixer

What browsers does autoprefixer target for 'last 2 versions'?


Running a autoprefixer task though grunt with 'last 2 version' under browsers. What browsers is this targeting? I would assume this means the last 2 versions of all browsers but I can't see any -moz prefixes in the CSS output.

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

Solution

  • 'Last 2 versions' means - support latest stable version (not beta or nightly builds) and one version earlier.