S
S
sincopa2016-12-02 14:44:45
Sass
sincopa, 2016-12-02 14:44:45

Compass + autoprefix gulp - Why doesn't it bleed prefixes?

var gulp         = require('gulp'), // Сам Gulp
  compass      = require('gulp-compass'), // Compass для Sass
  autoprefixer = require('gulp-autoprefixer'), // Добавление вендорных префиксов в CSS

gulp.task('style', function() {
  return gulp.src('/scss/style.scss') //путь до главного стиля sass/scss
  .pipe(compass({ //используем sass + compass
    config_file: 'config.rb', //путь файла настроек
    css: 'css', //путь куда сохранить файл
    sass: 'scss', //путь где находятся стили sass/scss
    	require: ['susy'] //добавляем susy в sass/scss
  }))
    .pipe(autoprefixer({
    browsers: [
      'last 20 versions',
      '> 5%'
    ],
    cascade: false
    }))
    .pipe(gulp.dest('css'));
});

gulp.task('default', ['style']);

Styles are collected normally, but for example on the transition tag: all .15s ease-out; prefixes are not set. What is the problem? Lots of threads like this but nothing helped me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2016-12-02
@zooks

Working option:

.pipe(autoprefixer({browsers: ['last 2 versions']}))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question