team-parrot / parrotcss

ParrotCSS - The CSS framework that'll change your workflow.
1 stars 1 forks source link

Add autoprefixer #1

Open pedzed opened 8 years ago

pedzed commented 8 years ago

The current situation is that you have to manually add prefixes like -moz and -webkit. It would be nice to get the prefixes automatically when preprocessing with Gulp.

DCzajkowski commented 8 years ago
var gulp = require('gulp'),
    sass = require('gulp-ruby-sass'),
    autoprefixer = require('gulp-autoprefixer');

gulp.task('styles', function() {
    return sass('assets/css/styles.sass', { style: 'compressed' })
        .pipe(autoprefixer({
            browsers: ['last 5 versions'],
            cascade: false
        }));
});