/*eslint-disable no-alert, no-console */
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';

import * as paths from './paths';


const $ = gulpLoadPlugins();


gulp.task('compile:styles', () => {
  const AUTOPREFIXER_BROWSERS = [
    'ie >= 10',
    'ie_mob >= 10',
    'ff >= 30',
    'chrome >= 34',
    'safari >= 7',
    'opera >= 23',
    'ios >= 7',
    'android >= 4.4',
    'bb >= 10'
  ];

  return gulp.src(paths.SRC_STYLE)
  .pipe($.plumber({
    errorHandler: (err) => {
      console.log(err);
      this.emit('end');
    }
  }))
  .pipe($.changed(paths.BUILD_DIR, {extension: '.css'}))
  .pipe($.sass().on('error', $.sass.logError))
  .pipe($.autoprefixer(AUTOPREFIXER_BROWSERS))
  .pipe(gulp.dest(paths.TMP_DIR))
});

@@ -218,207 +218,154 @@
 %7B%0A  
-const AUTOPREFIXER_BROWSERS = %5B%0A    'ie %3E= 10',%0A    'ie_mob %3E= 10',%0A    'ff %3E= 30',%0A    'chrome %3E= 34',%0A    'safari %3E= 7',%0A    'opera %3E= 23',%0A    'ios %3E= 7',%0A    'android %3E= 4.4',%0A    'bb %3E= 10'%0A  %5D;
+// See https://github.com/ai/browserslist for more details on how to set%0A  // browser versions%0A  const AUTOPREFIXER_BROWSERS = %5B'last 2 versions'%5D
 %0A%0A  

Simplify browser version selection for autoprefixer