Answer the question
In order to leave comments, you need to log in
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']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question